I have an error when filtering with $query->in when i use an arrayCollection. How can I do that?
$query->matching($query->in(‘category’, $categories))->setOrderings(array(‘title’ => QueryInterface::ORDER_ASCENDING));
$categories is a ArrayCollection.
cannot convert category to string
What is the full exception message ? And how do you put together the ArrayCollection?
So it works with ArrayCollection!
Sorry I changed to category name and I moved on. I don’t remember the exact message. Thank you for your help.