faker\FixtureController actionGenerate()

actionGenerate() public method

Generates fixtures and fill them with Faker data.

For example,

//generate fixtures in russian language
yii fixture/generate user --count=5 --language=ru_RU

//generate several fixtures
yii fixture/generate user profile team
public void actionGenerate ( )
throws yii\base\InvalidParamException
throws yii\console\Exception
doc_Yii
2016-10-30 17:02:15
Comments
Leave a Comment

Please login to continue.