Commit 8dc5c5cf by Mark

docs improved

parent 4204f896
...@@ -61,6 +61,9 @@ use yii\helpers\Console; ...@@ -61,6 +61,9 @@ use yii\helpers\Console;
* *
* //also a short version of this command (generate action is default) * //also a short version of this command (generate action is default)
* php yii faker users * php yii faker users
*
* //to generate fixtures for several tables, use "," as a separator, for example:
* php yii faker users,profile
* ~~~ * ~~~
* *
* In the code above "users" is template name, after this command run, new file named same as template * In the code above "users" is template name, after this command run, new file named same as template
......
...@@ -92,6 +92,9 @@ php yii faker/generate users ...@@ -92,6 +92,9 @@ php yii faker/generate users
//also a short version of this command ("generate" action is default) //also a short version of this command ("generate" action is default)
php yii faker users php yii faker users
//to generate fixtures for several tables, use "," as a separator, for example:
php yii faker users,profile,some_other_table
``` ```
In the code above "users" is template name, after this command run, new file named same as template In the code above "users" is template name, after this command run, new file named same as template
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment