-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Closed
Milestone
Description
My code was previously working and since the last update, all the application is down due to toIterable() returning only the last entity when selecting multiple entities.
At line 179 in AbstractHydrator, Doctrine is doing yield end($result); causing the issue, the call to end() function should not be used.
$result is a simple array containing all retrieved entities, calling end() is just returning the last one.
| yield end($result); |
I tested and the solution is really simple: Just remove the end() call, only yield $result;
This may be related to #8410
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels