first commit symfony 6
This commit is contained in:
@ -43,8 +43,7 @@ class CronRepository extends ServiceEntityRepository
|
||||
$now=new \DateTime();
|
||||
|
||||
$qb = $this->createQueryBuilder('cron')
|
||||
->Where('cron.statut=0')
|
||||
->orWhere('(cron.statut=0 OR cron.statut=1) AND cron.nextexecdate<:now');
|
||||
->Where('(cron.statut=0 OR cron.statut=1) AND cron.nextexecdate<:now');
|
||||
|
||||
return $qb->getQuery()->setParameter('now',$now->format("Y-m-d H:i:s"))->getResult();
|
||||
}
|
||||
|
Reference in New Issue
Block a user