[PR #11109] Original entity data resolves inverse 1-1 joins #12801

Closed
opened 2026-01-22 16:15:13 +01:00 by admin · 0 comments
Owner

Original Pull Request: https://github.com/doctrine/orm/pull/11109

State: closed
Merged: Yes


If the source entity for an inverse (non-owning) 1-1 relationship is identified by an association then the identifying association may not be set when an inverse one-to-one association is resolved. This means that no data is available in the entity to resolve the needed column value for the join query.

Provide the original entity data for the source entity as a fallback to resolve the query conditions.

The new test will fail if the fix is removed (comment out lines 840-847 in BasicEntityPersister.php).

Fixes #11108

**Original Pull Request:** https://github.com/doctrine/orm/pull/11109 **State:** closed **Merged:** Yes --- If the source entity for an inverse (non-owning) 1-1 relationship is identified by an association then the identifying association may not be set when an inverse one-to-one association is resolved. This means that no data is available in the entity to resolve the needed column value for the join query. Provide the original entity data for the source entity as a fallback to resolve the query conditions. The new test will fail if the fix is removed (comment out lines 840-847 in BasicEntityPersister.php). Fixes #11108
admin added the pull-request label 2026-01-22 16:15:13 +01:00
admin closed this issue 2026-01-22 16:15:13 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#12801