diff --git a/src/Command/ReportRiderTime.php b/src/Command/ReportRiderTime.php index 088e859f..5eab6ca0 100644 --- a/src/Command/ReportRiderTime.php +++ b/src/Command/ReportRiderTime.php @@ -38,7 +38,9 @@ class ReportRiderTime extends Command protected function populateJOIndex() { - $jo_events = $this->em->getRepository(JOEvent::class)->findAll(); + $jo_events = $this->em->createQuery("select e from App\Entity\JOEvent e where e.date_create >= '20180905'") + ->getResult(); + // $jo_events = $this->em->getRepository(JOEvent::class)->findBy('date_create' => '20180905'); $this->jo_index = [];