From da7b8894f5d538b7f40e38d86a5c965175ab4842 Mon Sep 17 00:00:00 2001 From: Alexey Skobkin Date: Tue, 23 Jun 2015 12:42:59 +0300 Subject: [PATCH] Repository fix. --- .../PointToolsBundle/Entity/SubscriptionEventRepository.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Skobkin/Bundle/PointToolsBundle/Entity/SubscriptionEventRepository.php b/src/Skobkin/Bundle/PointToolsBundle/Entity/SubscriptionEventRepository.php index c22c588..47b6f27 100644 --- a/src/Skobkin/Bundle/PointToolsBundle/Entity/SubscriptionEventRepository.php +++ b/src/Skobkin/Bundle/PointToolsBundle/Entity/SubscriptionEventRepository.php @@ -15,7 +15,7 @@ class SubscriptionEventRepository extends EntityRepository $now = new \DateTime(); - $eventsCount = $qb + return $qb ->select('COUNT(se)') ->where('se.date > :time') ->setParameter('time', $now->sub(new \DateInterval('PT24H')))