From f9cc750e1af4bdeb18069fc1b46dffb130805605 Mon Sep 17 00:00:00 2001 From: Mark Date: Sun, 5 Jan 2014 23:43:40 +0400 Subject: [PATCH] guides fixed/improved --- docs/guide/console-fixture.md | 9 +++++++++ extensions/yii/faker/README.md | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/docs/guide/console-fixture.md b/docs/guide/console-fixture.md index 01b136f..17b7c85 100644 --- a/docs/guide/console-fixture.md +++ b/docs/guide/console-fixture.md @@ -62,6 +62,12 @@ yii fixture users // apply several fixtures to several tables. Note that there should not be any whitespace between ",", it should be one string. yii fixture users,users_profiles +// apply all fixtures +yii fixture/apply all + +// same as above +yii fixture all + // apply fixtures to the table users, but fixtures will be taken from different path. yii fixture users --fixturePath='@app/my/custom/path/to/fixtures' @@ -80,6 +86,9 @@ yii fixture/clear users // clear several tables. Note that there should not be any whitespace between ",", it should be one string. yii fixture/clear users,users_profile + +// clear all tables of current connection in current schema +yii fixture/clear all ``` Configure Command Globally diff --git a/extensions/yii/faker/README.md b/extensions/yii/faker/README.md index 70f5456..38d640f 100644 --- a/extensions/yii/faker/README.md +++ b/extensions/yii/faker/README.md @@ -104,7 +104,7 @@ will be created under the fixtures path (by default ```@tests/unit/fixtures```) You can generate fixtures for all templates by specifying keyword ```all```. ```php -php yii fixture/generate all_fixtures +php yii fixture/generate all ``` This command will generate fixtures for all template files that are stored under template path and