From ff597c3344e5fbd94bbfb60fa79c6c61e3fa5481 Mon Sep 17 00:00:00 2001 From: Ruben Date: Fri, 31 Mar 2017 12:40:13 +0200 Subject: [PATCH] Stats total games --- src/Models/GameRepository.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Models/GameRepository.php b/src/Models/GameRepository.php index 64aff53..7b47f5d 100644 --- a/src/Models/GameRepository.php +++ b/src/Models/GameRepository.php @@ -64,10 +64,7 @@ class GameRepository extends EntityRepository public function getCount() { $query = $this->_em->createQuery( "SELECT COUNT(g.id) FROM ".Game::class." g" - ) - ->setParameters([ - 'date'=> $date, - ]); + ); return (int) $query->getSingleScalarResult(); } } \ No newline at end of file