From a5682a8c3c4644e21fa3f34aff9b9af154e8cef7 Mon Sep 17 00:00:00 2001 From: Johannes 'Haensel' Bauer Date: Fri, 6 Dec 2013 17:00:32 +0100 Subject: [PATCH] executing truncate table command --- framework/yii/test/DbFixtureManager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/yii/test/DbFixtureManager.php b/framework/yii/test/DbFixtureManager.php index 23d25d4..342db8b 100644 --- a/framework/yii/test/DbFixtureManager.php +++ b/framework/yii/test/DbFixtureManager.php @@ -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)) {