Filter::relation('comments', [FilterType::HAS])->includeRelationFields();
Filter::relation('comments', [FilterType::HAS], Filter::only( Filter::field('content', [FilterType::LIKE]) ) );
Any other filter
$filter = [ 'type' => '$has', 'target' => 'comments', 'value' => [ [ 'type' => '$like', 'target' => 'content', 'value' => 'awesome', ] ] ];
$sql = Project::filter([$filter])->toRawSql();
select * from "projects" where exists ( select * from "comments" where "projects"."id" = "comments"."project_id" and "comments"."content" LIKE '%awesome%' )
None available.