From 6b3dc596c2f6c4a1b07966dc18348f3b7940f0e4 Mon Sep 17 00:00:00 2001 From: SilverFire - Dmitry Naumenko Date: Wed, 20 Jul 2016 18:37:33 +0300 Subject: [PATCH] ActiveQuery - added joined relation populating for indexed relations --- src/ActiveQuery.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ActiveQuery.php b/src/ActiveQuery.php index 7eb5000..d4fe794 100644 --- a/src/ActiveQuery.php +++ b/src/ActiveQuery.php @@ -271,6 +271,7 @@ private function createModels($rows) $model = $class::instantiate($row); $modelClass = get_class($model); $modelClass::populateRecord($model, $row); + $this->populateJoinedRelations($model, $row); if (is_string($this->indexBy)) { $key = $model->{$this->indexBy}; } else {