Commit 50948423 by Qiang Xue

Fixed test break.

parent 1fa802a1
...@@ -248,6 +248,7 @@ class ActiveQuery extends Query implements ActiveQueryInterface ...@@ -248,6 +248,7 @@ class ActiveQuery extends Query implements ActiveQueryInterface
} }
if (!empty($with)) { if (!empty($with)) {
$this->with = [];
foreach ($with as $name => $value) { foreach ($with as $name => $value) {
if (is_integer($name)) { if (is_integer($name)) {
if (!in_array($value, $this->with, true) && !isset($this->with[$value])) { if (!in_array($value, $this->with, true) && !isset($this->with[$value])) {
......
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