mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
DDC-3719: Criteria won't work on non-owning side of many to many collection #4564
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @doctrinebot on GitHub (Apr 29, 2015).
Originally assigned to: @guilhermeblanco on GitHub.
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.