Skip to content

Commit

Permalink
ActiveQuery::populateJoinedRelations() fixed processing of multilevel…
Browse files Browse the repository at this point in the history
… relations
  • Loading branch information
SilverFire committed Mar 7, 2016
1 parent 4cf1bce commit 1b7a4ac
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ActiveQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,9 @@ public function populateJoinedRelations($model, array $row)
continue;
}
foreach ($this->join as $name) {
if ($name !== $key) {
continue;
}
if ($model->isRelationPopulated($name)) {
continue 2;
}
Expand Down

0 comments on commit 1b7a4ac

Please sign in to comment.