yii2-faker icon indicating copy to clipboard operation
yii2-faker copied to clipboard

Insert faker data to database

Open CraryPrimitiveMan opened this issue 9 years ago • 0 comments

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?

CraryPrimitiveMan avatar Sep 28 '15 08:09 CraryPrimitiveMan