Fix gamerepo
This commit is contained in:
parent
2ded8129b1
commit
6693c4d60b
1 changed files with 2 additions and 2 deletions
|
@ -27,7 +27,7 @@ class GameRepository extends EntityRepository
|
||||||
"SELECT COUNT(g.id) FROM ".Game::class." g WHERE g.level = :level"
|
"SELECT COUNT(g.id) FROM ".Game::class." g WHERE g.level = :level"
|
||||||
)
|
)
|
||||||
->setParameters([
|
->setParameters([
|
||||||
'level' => $game->getLevel(),
|
'level' => $level(),
|
||||||
]);
|
]);
|
||||||
return $query->getSingleScalarResult();
|
return $query->getSingleScalarResult();
|
||||||
}
|
}
|
||||||
|
@ -40,7 +40,7 @@ class GameRepository extends EntityRepository
|
||||||
"SELECT MAX(g.score) FROM ".Game::class." g WHERE g.level = :level"
|
"SELECT MAX(g.score) FROM ".Game::class." g WHERE g.level = :level"
|
||||||
)
|
)
|
||||||
->setParameters([
|
->setParameters([
|
||||||
'level' => $game->getLevel(),
|
'level' => $level,
|
||||||
]);
|
]);
|
||||||
return $query->getSingleScalarResult();
|
return $query->getSingleScalarResult();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue