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

Make the join table name and join column name mandatory #10729

Merged
merged 2 commits into from
May 30, 2023

Conversation

greg0ire
Copy link
Member

@greg0ire greg0ire commented May 26, 2023

Found while working on migrating towards the object API of Join{Column,Table}Mapping.

It does not seem to ever be empty
@greg0ire greg0ire changed the title Make the join table name mandatory Make the join table name and join column name mandatory May 26, 2023
@greg0ire
Copy link
Member Author

ping @derrabus @SenseException 🙏

Comment on lines 50 to 51
if (isset($mappingArray['joinTable'])) {
if (isset($mappingArray['joinTable']['joinColumns'])) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isset($mappingArray['joinTable']['joinColumns'])) should be enough here.

@greg0ire greg0ire force-pushed the mandatory-table-name branch from 0b63115 to ee62934 Compare May 28, 2023 21:28
@greg0ire greg0ire requested a review from SenseException May 28, 2023 21:28
@greg0ire greg0ire merged commit ec43884 into doctrine:3.0.x May 30, 2023
@greg0ire greg0ire added this to the 3.0.0 milestone May 30, 2023
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.

2 participants