console\controllers\FixtureController actionUnload()

actionUnload() public method

Unloads the specified fixtures.

For example,

# unload the fixture data specified by User and UserProfile.
yii fixture/unload "User, UserProfile"

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

# unload all fixtures except User and UserProfile
yii fixture/unload "*, -User, -UserProfile"
public integer actionUnload ( 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.