Browse Source

Merge pull request #1448 from Haensel/fixturemanager-truncate-table

DBFixtureManager: Truncate table command never gets executed
tags/2.0.0-beta
Qiang Xue 11 years ago
parent
commit
312aa895cd
  1. 2
      framework/yii/test/DbFixtureManager.php

2
framework/yii/test/DbFixtureManager.php

@ -145,7 +145,7 @@ class DbFixtureManager extends Component
throw new InvalidConfigException("Table does not exist: $tableName"); throw new InvalidConfigException("Table does not exist: $tableName");
} }
$this->db->createCommand()->truncateTable($tableName); $this->db->createCommand()->truncateTable($tableName)->execute();
$fileName = $this->basePath . '/' . $tableName . '.php'; $fileName = $this->basePath . '/' . $tableName . '.php';
if (!is_file($fileName)) { if (!is_file($fileName)) {

Loading…
Cancel
Save