From 6693c4d60b42bcd34b80e26c6236bea3be5ad440 Mon Sep 17 00:00:00 2001 From: Ruben Date: Sun, 4 Sep 2016 12:00:15 +0100 Subject: [PATCH] Fix gamerepo --- src/Models/GameRepository.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Models/GameRepository.php b/src/Models/GameRepository.php index 0df369a..5700e13 100644 --- a/src/Models/GameRepository.php +++ b/src/Models/GameRepository.php @@ -27,7 +27,7 @@ class GameRepository extends EntityRepository "SELECT COUNT(g.id) FROM ".Game::class." g WHERE g.level = :level" ) ->setParameters([ - 'level' => $game->getLevel(), + 'level' => $level(), ]); return $query->getSingleScalarResult(); } @@ -40,7 +40,7 @@ class GameRepository extends EntityRepository "SELECT MAX(g.score) FROM ".Game::class." g WHERE g.level = :level" ) ->setParameters([ - 'level' => $game->getLevel(), + 'level' => $level, ]); return $query->getSingleScalarResult(); }