Skip to content


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

doctrinebot opened this Issue · 2 comments

2 participants


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?


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:



Issue was closed with resolution "Fixed"

@doctrinebot doctrinebot added this to the 2.5 milestone
@doctrinebot doctrinebot closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.