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

Introduce method to get to the owning side #10688

Merged
merged 1 commit into from May 9, 2023

Conversation

greg0ire
Copy link
Member

@greg0ire greg0ire commented May 8, 2023

Throughout the codebase, there is this pattern where we ensure we have the owning side of an association.
It involves accessing it from the associationMappings array. In the end, static analysis cannot know that the association is indeed owning. By introducing this convenience method, we make this clear, and also delegate the complexity to the class metadata factory.

Throughout the codebase, there is this pattern where we ensure we have
the owning side of an association.
It involves accessing it from the associationMappings array. In the end,
static analysis cannot know that the association is indeed owning.
By introducing this convenience method, we make this clear, and also
delegate the complexity to the class metadata factory.
@derrabus derrabus added this to the 3.0.0 milestone May 8, 2023
@greg0ire greg0ire merged commit e5eaf9b into doctrine:3.0.x May 9, 2023
35 checks passed
@greg0ire greg0ire deleted the cmf-getowningassoc branch May 9, 2023 05:42
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.

None yet

2 participants