Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
a4d967ca
Commit
a4d967ca
authored
Feb 04, 2014
by
Mark
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added docs
parent
14d303d4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
console-fixture.md
docs/guide/console-fixture.md
+10
-1
No files found.
docs/guide/console-fixture.md
View file @
a4d967ca
...
...
@@ -79,6 +79,11 @@ yii fixtures User --db='customDbConnectionId'
// apply fixtures, but search them in different namespace. By default namespace is: tests\unit\fixtures.
yii fixtures User --namespace='alias\my\custom\namespace'
// apply global fixture `some\name\space\CustomFixture` before other fixtures will be loaded.
// By default this option is set to `InitDbFixture` to disable/enable integrity checks. You can specify several
// global fixtures separated by comma.
yii fixtures User --globalFixtures='some\name\space\Custom'
```
Unloading fixtures
...
...
@@ -97,7 +102,7 @@ yii fixture/clear User,UserProfile
yii fixture/clear all
```
Same command options like:
`db`
,
`namespace`
also can be applied to this command.
Same command options like:
`db`
,
`namespace`
,
`globalFixtures`
also can be applied to this command.
Configure Command Globally
--------------------------
...
...
@@ -111,6 +116,10 @@ different migration path as follows:
'class' => 'yii\console\controllers\FixtureController',
'db' => 'customDbConnectionId',
'namespace' => 'myalias\some\custom\namespace',
'globalFixtures' => [
'some\name\space\Foo',
'other\name\space\Bar'
],
],
]
```
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment