Browse Source

applied fixture command docs from #1762

closes #1762
tags/2.0.0-beta
Carsten Brandt 11 years ago
parent
commit
3fdca0508c
  1. 9
      framework/yii/console/controllers/FixtureController.php

9
framework/yii/console/controllers/FixtureController.php

@ -98,8 +98,9 @@ class FixtureController extends Controller
} }
/** /**
* Apply given fixture to the table. Fixture name can be the same as the table name or * Apply given fixture to the table. You can load several fixtures specifying
* you can specify table name as a second parameter. * their names separated with commas, like: tbl_user,tbl_profile. Be sure there is no
* whitespace between tables names.
* @param array $fixtures * @param array $fixtures
* @throws \yii\console\Exception * @throws \yii\console\Exception
*/ */
@ -121,7 +122,9 @@ class FixtureController extends Controller
} }
/** /**
* Truncate given table and clear all fixtures from it. * Truncate given table and clear all fixtures from it. You can clear several tables specifying
* their names separated with commas, like: tbl_user,tbl_profile. Be sure there is no
* whitespace between tables names.
* @param array|string $tables * @param array|string $tables
*/ */
public function actionClear(array $tables) public function actionClear(array $tables)

Loading…
Cancel
Save