diff --git a/src/Repository/CronJobRepository.php b/src/Repository/CronJobRepository.php index d523a02..c9ff631 100644 --- a/src/Repository/CronJobRepository.php +++ b/src/Repository/CronJobRepository.php @@ -40,10 +40,11 @@ public function findByCommandOrId(string $commandOrId): CronJobCollection ->andWhere( $qb->expr()->orX( 'p.command = :command', - 'p.id = :command', + 'p.id = :commandInt', ), ) ->setParameter('command', $commandOrId, Types::STRING) + ->setParameter('commandInt', (int) $commandOrId, Types::INTEGER) ->getQuery() ->getResult();