Last updated 4 years ago
Was this helpful?
You can use a delete query to delete entities that match the given criteria.
$query = QB::create() ->delete(TestContact::class) ->where('isPermanent', '=', false) ->buildDeleteQuery(); $count = $repository->executeQuery($query);
You can perform more complex filtering operations using and as with other types of query.