Skip to content

Commit

Permalink
Fixing the bug on multiple relations when loading join values.
Browse files Browse the repository at this point in the history
  • Loading branch information
Filipe Silva committed Jan 12, 2015
1 parent 20984d7 commit c94b9cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Slick/Orm/Relation/AbstractSingleRelation.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public function afterSelect(Select $event)
}

if ($multiple) {
$event->data = $data;
$event->data = new RecordList(['data' => $data]);
} else {
$event->data = reset($data);
}
Expand Down

0 comments on commit c94b9cf

Please sign in to comment.