From 5094842370e5e22562d1bc3a75e1bae09a83caa3 Mon Sep 17 00:00:00 2001 From: Qiang Xue Date: Tue, 7 Jan 2014 10:00:53 -0500 Subject: [PATCH] Fixed test break. --- framework/yii/db/ActiveQuery.php | 1 + 1 file changed, 1 insertion(+) diff --git a/framework/yii/db/ActiveQuery.php b/framework/yii/db/ActiveQuery.php index 9a7640f..65e5fe9 100644 --- a/framework/yii/db/ActiveQuery.php +++ b/framework/yii/db/ActiveQuery.php @@ -248,6 +248,7 @@ class ActiveQuery extends Query implements ActiveQueryInterface } if (!empty($with)) { + $this->with = []; foreach ($with as $name => $value) { if (is_integer($name)) { if (!in_array($value, $this->with, true) && !isset($this->with[$value])) {