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"