#7848Support array / multiple values in $query->contains
Description
The contains constraint should accept an Array/ObjectStorage/Traversable as condition so that building a query like this is possible
$query->matching(
$query->contains(‘relation’, array(1,2,3,4,5))
);
Currently the only way is to build an array of $query->contains(‘relation’, $relation) and combine that with a logicalOr condition.
Looking at the resulting SQL this leads to an excessive and unnecessary amount of subqueries.
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.