我在下面的代码中添加了一个不相关模型的自定义过滤器,但我无法对其进行过滤。谁能指出我正确的方向?
public function addLanguagesColumnQuery($query, $field, $value)
{
$rootAlias = $query->getRootAlias();
$query->andWhereIn($rootAlias.'.journalist_id IN (SELECT journalist_id FROM journalist_language where language_id IN ('.implode(",", array_filter($value, 'strlen')).')');
return $query;
}