Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Respect referencedColumnName defaults in custom naming strategies#11776

Merged
greg0ire merged 1 commit into
doctrine:3.4.xfrom
curry684:issue-9558
Dec 24, 2024
Merged

Respect referencedColumnName defaults in custom naming strategies#11776
greg0ire merged 1 commit into
doctrine:3.4.xfrom
curry684:issue-9558

Conversation

@curry684
Copy link
Copy Markdown
Contributor

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
Comment thread tests/Tests/ORM/Mapping/NamingStrategy/CustomPascalNamingStrategy.php Outdated
Comment thread tests/Tests/ORM/Mapping/AttributeDriverTest.php Outdated
@greg0ire
Copy link
Copy Markdown
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
Copy Markdown
Member

Thanks @curry684 !

@curry684 curry684 deleted the issue-9558 branch December 26, 2024 21:01
@greg0ire greg0ire modified the milestones: 3.4.0, 3.3.1 Jan 21, 2025
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