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 #4566
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.
@doctrinebot commented on GitHub (Apr 29, 2015):
@boesing commented on GitHub (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 commented on GitHub (Jan 5, 2017):
@boesing it's up to the merger to decide whether a fix is worth backporting or not.