Commit f5f93647 by Carsten Brandt

fixed test break

how did that manage to pass before...?
parent 3d623a00
......@@ -239,7 +239,7 @@ trait ActiveRelationTrait
$link = array_values(isset($viaQuery) ? $viaQuery->link : $this->link);
foreach ($primaryModels as $i => $primaryModel) {
if ($this->multiple && count($link) == 1 && is_array($keys = $primaryModel->{reset($link)})) {
if ($this->multiple && count($link) == 1 && is_array($keys = $primaryModel[reset($link)])) {
$value = [];
foreach ($keys as $key) {
if (isset($buckets[$key])) {
......
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