DDC-2061: Matching Criteria on a PersistentCollection only works on OneToMany associations #2596

Closed
opened 2026-01-22 13:57:56 +01:00 by admin · 2 comments
Owner

Originally created by @doctrinebot on GitHub (Oct 8, 2012).

Originally assigned to: @guilhermeblanco on GitHub.

Jira issue originally created by user terjeb:

What is needed to make it also work for ManyToMany associations?

May be a better fallback would be do an ArrayCollection->matching() instead of just giving a runtime exception?

Is this something that is difficult to implement?

Originally created by @doctrinebot on GitHub (Oct 8, 2012). Originally assigned to: @guilhermeblanco on GitHub. Jira issue originally created by user terjeb: What is needed to make it also work for ManyToMany associations? May be a better fallback would be do an ArrayCollection->matching() instead of just giving a runtime exception? Is this something that is difficult to implement?
admin added the Improvement label 2026-01-22 13:57:56 +01:00
admin closed this issue 2026-01-22 13:57:57 +01:00
Author
Owner

@doctrinebot commented on GitHub (Apr 16, 2014):

Comment created by @guilhermeblanco:

This is already possible on 2.5 branch (dev-master for now).
Tracked commit history and found this commit hash as the one that allowed this:

160b07d1e3

@doctrinebot commented on GitHub (Apr 16, 2014): Comment created by @guilhermeblanco: This is already possible on 2.5 branch (dev-master for now). Tracked commit history and found this commit hash as the one that allowed this: https://github.com/doctrine/doctrine2/commit/160b07d1e3107b9a8210fc73d456305b03146c39
Author
Owner

@doctrinebot commented on GitHub (Apr 16, 2014):

Issue was closed with resolution "Fixed"

@doctrinebot commented on GitHub (Apr 16, 2014): Issue was closed with resolution "Fixed"
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#2596