Commit 871ae29c by Carsten Brandt

call asArray() instead of assign directly

fixes #3891
parent 88917b55
......@@ -163,7 +163,7 @@ trait ActiveQueryTrait
foreach ($relations as $name => $relation) {
if ($relation->asArray === null) {
// inherit asArray from primary query
$relation->asArray = $this->asArray;
$relation->asArray($this->asArray);
}
$relation->populateRelation($name, $models);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment