Repository fix.

This commit is contained in:
Alexey Skobkin 2015-06-23 12:42:59 +03:00
parent 0f93037624
commit da7b8894f5

View file

@ -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')))