[DDC-3719] Criteria won't work on non-owning side of many to many collection Created: 29/Apr/15 Updated: 03/May/15
|Project:||Doctrine 2 - ORM|
|Component/s:||Lazy Loading, ORM|
|Affects Version/s:||Git Master|
|Reporter:||Logan Bailey||Assignee:||Guilherme Blanco|
I received the following error when trying to call matching on a ManyToMany relationship from the non-owning side.
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.