From 1b7a4ac6df0dd6f8583fc59e8a5c0621cb332759 Mon Sep 17 00:00:00 2001 From: SilverFire - Dmitry Naumenko Date: Mon, 7 Mar 2016 18:21:58 +0200 Subject: [PATCH] ActiveQuery::populateJoinedRelations() fixed processing of multilevel relations --- src/ActiveQuery.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/ActiveQuery.php b/src/ActiveQuery.php index dccb61d..9ac374c 100644 --- a/src/ActiveQuery.php +++ b/src/ActiveQuery.php @@ -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; }