Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Respect referencedColumnName defaults in custom naming strategies #11776

Merged
merged 1 commit into from
Dec 24, 2024

Conversation

curry684
Copy link

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 #9558 for full examples.

greg0ire
greg0ire previously approved these changes Dec 22, 2024
@greg0ire
Copy link
Member

Also, please squash your commits into one, since we're unlikely to revert one but not the other, and reuse the PR description as a commit message body, to make the git history as independent from external resources as possible.

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 changes it to be determines correctly.

Ref doctrine#9558
@greg0ire greg0ire added this to the 3.4.0 milestone Dec 24, 2024
@greg0ire greg0ire merged commit 9f2b367 into doctrine:3.4.x Dec 24, 2024
@greg0ire
Copy link
Member

Thanks @curry684 !

@curry684 curry684 deleted the issue-9558 branch December 26, 2024 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants