Browse Source

guides fixed/improved

tags/2.0.0-beta
Mark 11 years ago
parent
commit
f9cc750e1a
  1. 9
      docs/guide/console-fixture.md
  2. 2
      extensions/yii/faker/README.md

9
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. // 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 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. // apply fixtures to the table users, but fixtures will be taken from different path.
yii fixture users --fixturePath='@app/my/custom/path/to/fixtures' 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. // clear several tables. Note that there should not be any whitespace between ",", it should be one string.
yii fixture/clear users,users_profile yii fixture/clear users,users_profile
// clear all tables of current connection in current schema
yii fixture/clear all
``` ```
Configure Command Globally Configure Command Globally

2
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```. You can generate fixtures for all templates by specifying keyword ```all```.
```php ```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 This command will generate fixtures for all template files that are stored under template path and

Loading…
Cancel
Save