Commit 312aa895 by Qiang Xue

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

DBFixtureManager: Truncate table command never gets executed
parents 9d0da237 a5682a8c
......@@ -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)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment