I have an entity Image which has the property "categories". Categories is an instance of Doctrine's ArrayCollection and holds different Category objects.
I now want to fetch all Image objects containing the Category object "main".
With normal properties this looks like this:
$repository->findBy(array('category' => 'main'));
Is this also possible with Array properties or do I have to fetch the Images over the Category side?
Regards!