[PR #9537] Make error message suggestion accurate #11688

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

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

State: closed
Merged: Yes


Wrong validation message is displayed when an incorrect bidirectional
one-to-one mapping is set up. When the owning side is configured
correctly and the target side is missing the back reference the ORM
suggests adding inverseBy instead of mappedBy, with the field name
missing.

Fixes https://github.com/doctrine/orm/issues/9536

**Original Pull Request:** https://github.com/doctrine/orm/pull/9537 **State:** closed **Merged:** Yes --- Wrong validation message is displayed when an incorrect bidirectional one-to-one mapping is set up. When the owning side is configured correctly and the target side is missing the back reference the ORM suggests adding inverseBy instead of mappedBy, with the field name missing. Fixes https://github.com/doctrine/orm/issues/9536
admin added the pull-request label 2026-01-22 16:11:36 +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#11688