console\controllers\FixtureController actionLoad()

actionLoad() public method

Loads the specified fixture data.

For example,

# load the fixture data specified by User and UserProfile.
# any existing fixture data will be removed first
yii fixture/load "User, UserProfile"

# load all available fixtures found under 'tests\unit\fixtures'
yii fixture/load "*"

# load all fixtures except User and UserProfile
yii fixture/load "*, -User, -UserProfile"
public integer actionLoad ( array $fixturesInput = [] )
$fixturesInput array
return integer

Return code

throws yii\console\Exception

if the specified fixture does not exist.

doc_Yii
2016-10-30 16:55:03
Comments
Leave a Comment

Please login to continue.