mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
Collection is hydrated as empty if first row contains nulls from a leftJoin #6985
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @freiondrej-lmc on GitHub (Jun 2, 2022).
Bug Report
Summary
When the first row of a leftJoin result contains null values (because of a SqlFilter), the collection is hydrated as empty.
Current behavior
The collection is hydrated as empty if the first row is nullish.
How to reproduce
Details for reproduction is in https://github.com/freiondrej-lmc/doctrine_orm_bug_reproduction .
Expected behavior
The Collection should be hydrated with existing data.
@freiondrej-lmc commented on GitHub (Jun 2, 2022):
Found https://github.com/doctrine/orm/issues/9230, but I don't know if that is actually similar, or only looks similar but is a different problem. 🤔