Skip to content

Commit

Permalink
ActiveQuery - added joined relation populating for indexed relations
Browse files Browse the repository at this point in the history
  • Loading branch information
SilverFire committed Jul 20, 2016
1 parent 659b57b commit 6b3dc59
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/ActiveQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 6b3dc59

Please sign in to comment.