The "in" property used in Extbase does not seem to be working for me.
$actor
contains an array of Actor model objects
. My Movie model
and Actor
are in m:n relation.
I tried something like this in my Movie Repository
:
$query=$this->createQuery();
$query->matching($query->in('actors',$actors));
$result = $query->execute()->toArray();
$result
is showing NULL
I tried passing array of actor uids
too but that wont work as well:
$query->matching($query->in('actors',[$actor_1_uid,$actor_2_uid]));
There is of course contains
but using in
should be more convenient.