Fix query bug
This commit is contained in:
parent
f677d2d4a5
commit
8dc9963e98
1 changed files with 1 additions and 1 deletions
|
@ -84,7 +84,7 @@ class UserRepository extends EntityRepository implements UserProviderInterface
|
|||
public function getRankForUser(User $user) {
|
||||
|
||||
$query = $this->_em->createQuery(
|
||||
"SELECT COUNT(u.id) FROM ".User::class." u WHERE totalScore >= :totalScore"
|
||||
"SELECT COUNT(u.id) FROM ".User::class." u WHERE u.totalScore >= :totalScore"
|
||||
)
|
||||
->setParameters([
|
||||
'totalScore' => $user->getTotalScore(),
|
||||
|
|
Loading…
Reference in a new issue