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

DDC-3719: Criteria won't work on non-owning side of many to many collection #4555

Closed
doctrinebot opened this issue Apr 29, 2015 · 3 comments
Closed
Assignees
Labels
Milestone

Comments

@doctrinebot
Copy link

Jira issue originally created by user baileylo:

I received the following error when trying to call matching on a ManyToMany relationship from the non-owning side.

{quote}
ErrorException in ManyToManyPersister.php line 234: Undefined index: relationToSourceKeyColumns
{quote}

ManyToManyPersister::loadCriteria relies on the relationToSourceKeyColumns data from the mapping data. This value is set in ClassMetadataInfo::_validateAndCompleteManyToManyMapping, but it's only set on the owning side of the relationship.

@doctrinebot
Copy link
Author

@boesing
Copy link

boesing commented Jan 5, 2017

Since PR #5638 was merged, when will this fix merged into 2.5 branch or will this be part of 2.6?
I am expiriencing this aswell and would love to use this fix.

Never mind, got the milestone 2.6, even if I am wondering why bugfixes are not merged into current branches.

@Ocramius
Copy link
Member

Ocramius commented Jan 5, 2017

@boesing it's up to the merger to decide whether a fix is worth backporting or not.

@Ocramius Ocramius added this to the 2.6.0 milestone Jan 5, 2017
@Ocramius Ocramius closed this as completed Jan 5, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants