[PR #11776] Respect referencedColumnName defaults in custom naming strategies #13256

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

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

State: closed
Merged: Yes


Previously, when using a custom naming strategy, explicitly declaring a JoinColumn required specifying the referencedColumnName always as it would default to id no matter the naming strategy. This PR fixes this omission.

Refer to https://github.com/doctrine/orm/issues/9558 for full examples.

**Original Pull Request:** https://github.com/doctrine/orm/pull/11776 **State:** closed **Merged:** Yes --- Previously, when using a custom naming strategy, explicitly declaring a `JoinColumn` required specifying the `referencedColumnName` always as it would default to `id` no matter the naming strategy. This PR fixes this omission. Refer to https://github.com/doctrine/orm/issues/9558 for full examples.
admin added the pull-request label 2026-01-22 16:16:39 +01:00
admin closed this issue 2026-01-22 16:16:40 +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#13256