Stats total games

This commit is contained in:
Ruben 2017-03-31 12:40:13 +02:00
parent 7e7c37ab52
commit ff597c3344

View file

@ -64,10 +64,7 @@ class GameRepository extends EntityRepository
public function getCount() { public function getCount() {
$query = $this->_em->createQuery( $query = $this->_em->createQuery(
"SELECT COUNT(g.id) FROM ".Game::class." g" "SELECT COUNT(g.id) FROM ".Game::class." g"
) );
->setParameters([
'date'=> $date,
]);
return (int) $query->getSingleScalarResult(); return (int) $query->getSingleScalarResult();
} }
} }