Extbase 中使用的“in”属性似乎对我不起作用。
$actor包含一个数组Actor model objects。我的Movie model和Actor是 m:n 的关系。
我在我的Movie Repository:
$query=$this->createQuery();
$query->matching($query->in('actors',$actors));
$result = $query->execute()->toArray();
$result正在显示NULL
我也尝试过传递数组,actor uids但这也行不通:
$query->matching($query->in('actors',[$actor_1_uid,$actor_2_uid]));
当然有,contains但使用in应该更方便。