Browse Source

Merge pull request #1794 from Ragazzo/docs_improved

guides fixed/improved
tags/2.0.0-beta
Qiang Xue 11 years ago
parent
commit
7897754044
  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.
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

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```.
```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

Loading…
Cancel
Save