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 criteria and joins as with other types of query.
Last updated 3 years ago