em->createQuery( <<<'DQL' DELETE FROM App\Entity\Relay r WHERE r.updated_at < :threshold DQL )->setParameter('threshold', $threshold) ->execute(); } }