mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 06:15:19 +08:00
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:

committed by
Alexander Makarov

parent
326cdfeb52
commit
8c240ed067
@ -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"
|
||||
|
||||
```
|
||||
|
||||
|
Reference in New Issue
Block a user