Skip to content

Commit

Permalink
CHANGE: Changes / FIx in setLastElement // RecordDriver
Browse files Browse the repository at this point in the history
  • Loading branch information
Johannes Tyra committed Feb 5, 2019
1 parent 6fd45f6 commit c80b23d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Doctrine/Hydrator/RecordDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public function setLastElement(&$prev, &$coll, $index, $dqlAlias, $oneToOne)
return;
}

if (count($coll) > 0) {
if (is_object($coll) && count($coll) > 0) {
$prev[$dqlAlias] = $coll->getLast();
}
}
Expand Down

0 comments on commit c80b23d

Please sign in to comment.