Stats total games
This commit is contained in:
parent
7e7c37ab52
commit
ff597c3344
1 changed files with 1 additions and 4 deletions
|
@ -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();
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue