Collection is hydrated as empty if first row contains nulls from a leftJoin #6985

Closed
opened 2026-01-22 15:42:38 +01:00 by admin · 1 comment
Owner

Originally created by @freiondrej-lmc on GitHub (Jun 2, 2022).

Bug Report

Q A
BC Break no
Version 2.11.3

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.

Originally created by @freiondrej-lmc on GitHub (Jun 2, 2022). ### Bug Report <!-- Fill in the relevant information below to help triage your issue. --> | Q | A |------------ | ------ | BC Break | no | Version | 2.11.3 #### Summary When the first row of a leftJoin result contains null values (because of a SqlFilter), the collection is hydrated as empty. #### Current behavior <!-- What is the current (buggy) behavior? --> The collection is hydrated as empty if the first row is nullish. #### How to reproduce <!-- Provide steps to reproduce the bug. If possible, also add a code snippet with relevant configuration, entity mappings, DQL etc. Adding a failing Unit or Functional Test would help us a lot - you can submit one in a Pull Request separately, referencing this bug report. --> Details for reproduction is in https://github.com/freiondrej-lmc/doctrine_orm_bug_reproduction . #### Expected behavior The Collection should be hydrated with existing data.
admin added the Bug label 2026-01-22 15:42:38 +01:00
admin closed this issue 2026-01-22 15:42:39 +01:00
Author
Owner

@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. 🤔

@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. 🤔
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#6985