[PR #10688] Introduce method to get to the owning side #12544

Open
opened 2026-01-22 16:14:23 +01:00 by admin · 0 comments
Owner

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

State: closed
Merged: Yes


Throughout the codebase, there is this pattern where we ensure we have the owning side of an association.
It involves accessing it from the associationMappings array. In the end, static analysis cannot know that the association is indeed owning. By introducing this convenience method, we make this clear, and also delegate the complexity to the class metadata factory.

**Original Pull Request:** https://github.com/doctrine/orm/pull/10688 **State:** closed **Merged:** Yes --- Throughout the codebase, there is this pattern where we ensure we have the owning side of an association. It involves accessing it from the associationMappings array. In the end, static analysis cannot know that the association is indeed owning. By introducing this convenience method, we make this clear, and also delegate the complexity to the class metadata factory.
admin added the pull-request label 2026-01-22 16:14:23 +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#12544