yii2-faker
yii2-faker copied to clipboard
Insert faker data to database
If I want to insert faker data to database, what should I do? I add the following code in my application configuration (console.php):
'controllerMap' => [
'fixture' => [
'class' => '@tests\faker\FixtureController',
],
],
And I rewrite the actionGenerate
in @tests\faker\FixtureController
. Is it right?