Skip to content

Commit

Permalink
Fix selecting multiple entities doctrine#8413
Browse files Browse the repository at this point in the history
Fix doctrine#8413
Now allowing to select multiple entities and return all of them
  • Loading branch information
Loenix authored Jan 6, 2021
1 parent 378944d commit a29c433
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Doctrine/ORM/Internal/Hydration/AbstractHydrator.php
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ public function toIterable(Statement $stmt, ResultSetMapping $resultSetMapping,

$this->hydrateRowData($row, $result);

yield end($result);
yield $result;
}
}

Expand Down

0 comments on commit a29c433

Please sign in to comment.