From 8dc5c5cfdd98e27701cd582d3cd8ca5e5db7c87e Mon Sep 17 00:00:00 2001 From: Mark Date: Fri, 3 Jan 2014 01:46:30 +0400 Subject: [PATCH] docs improved --- extensions/yii/faker/FixtureController.php | 3 +++ extensions/yii/faker/README.md | 3 +++ 2 files changed, 6 insertions(+) diff --git a/extensions/yii/faker/FixtureController.php b/extensions/yii/faker/FixtureController.php index 3ad458e..a6e232d 100644 --- a/extensions/yii/faker/FixtureController.php +++ b/extensions/yii/faker/FixtureController.php @@ -61,6 +61,9 @@ use yii\helpers\Console; * * //also a short version of this command (generate action is default) * 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 diff --git a/extensions/yii/faker/README.md b/extensions/yii/faker/README.md index 2e2700f..068b29b 100644 --- a/extensions/yii/faker/README.md +++ b/extensions/yii/faker/README.md @@ -92,6 +92,9 @@ php yii faker/generate users //also a short version of this command ("generate" action is default) 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