Browse Source

Fixed test break.

tags/2.0.0-beta
Qiang Xue 11 years ago
parent
commit
5094842370
  1. 1
      framework/yii/db/ActiveQuery.php

1
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])) {

Loading…
Cancel
Save