Fixes #11683: Fixed fixture command to work with short syntax. yii fixture "*, -User" should be used instead of yii fixture "*" -User

This commit is contained in:
Angel Guevara
2016-06-06 23:15:01 -05:00
committed by Alexander Makarov
parent 326cdfeb52
commit 8c240ed067
8 changed files with 53 additions and 53 deletions

View File

@ -310,7 +310,7 @@ yii fixture/load User
yii fixture User
// load several fixtures
yii fixture User UserProfile
yii fixture "User, UserProfile"
// load all fixtures
yii fixture/load "*"
@ -319,7 +319,7 @@ yii fixture/load "*"
yii fixture "*"
// load all fixtures except ones
yii fixture "*" -DoNotLoadThisOne
yii fixture "*, -DoNotLoadThisOne"
// load fixtures, but search them in different namespace. By default namespace is: tests\unit\fixtures.
yii fixture User --namespace='alias\my\custom\namespace'
@ -340,13 +340,13 @@ To unload fixture, run the following command:
yii fixture/unload User
// Unload several fixtures
yii fixture/unload User,UserProfile
yii fixture/unload "User, UserProfile"
// unload all fixtures
yii fixture/unload "*"
// unload all fixtures except ones
yii fixture/unload "*" -DoNotUnloadThisOne
yii fixture/unload "*, -DoNotUnloadThisOne"
```