Repository fix.
This commit is contained in:
parent
0f93037624
commit
da7b8894f5
|
@ -15,7 +15,7 @@ class SubscriptionEventRepository extends EntityRepository
|
||||||
|
|
||||||
$now = new \DateTime();
|
$now = new \DateTime();
|
||||||
|
|
||||||
$eventsCount = $qb
|
return $qb
|
||||||
->select('COUNT(se)')
|
->select('COUNT(se)')
|
||||||
->where('se.date > :time')
|
->where('se.date > :time')
|
||||||
->setParameter('time', $now->sub(new \DateInterval('PT24H')))
|
->setParameter('time', $now->sub(new \DateInterval('PT24H')))
|
||||||
|
|
Loading…
Reference in a new issue