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