[PR #11309] Deprecate invalid method call #12931

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

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

State: closed
Merged: Yes


getAssociationMappedByTargetField() returns null when called with the owning side of an association.
This is undocumented and wrong because the phpdoc advertises a string as a return type.

Instead, callers should ensure they are calling that method with an inverse side.

Closes #11250

**Original Pull Request:** https://github.com/doctrine/orm/pull/11309 **State:** closed **Merged:** Yes --- `getAssociationMappedByTargetField()` returns `null` when called with the owning side of an association. This is undocumented and wrong because the phpdoc advertises a string as a return type. Instead, callers should ensure they are calling that method with an inverse side. Closes #11250
admin added the pull-request label 2026-01-22 16:15:38 +01:00
admin closed this issue 2026-01-22 16:15:39 +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#12931