mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-15 13:58:24 +08:00
Merge pull request #1448 from Haensel/fixturemanager-truncate-table
DBFixtureManager: Truncate table command never gets executed
This commit is contained in:
@@ -145,7 +145,7 @@ class DbFixtureManager extends Component
|
||||
throw new InvalidConfigException("Table does not exist: $tableName");
|
||||
}
|
||||
|
||||
$this->db->createCommand()->truncateTable($tableName);
|
||||
$this->db->createCommand()->truncateTable($tableName)->execute();
|
||||
|
||||
$fileName = $this->basePath . '/' . $tableName . '.php';
|
||||
if (!is_file($fileName)) {
|
||||
|
||||
Reference in New Issue
Block a user