Fix query bug

This commit is contained in:
Ruben 2016-09-16 00:53:49 +01:00
parent f677d2d4a5
commit 8dc9963e98

View file

@ -84,7 +84,7 @@ class UserRepository extends EntityRepository implements UserProviderInterface
public function getRankForUser(User $user) { public function getRankForUser(User $user) {
$query = $this->_em->createQuery( $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([ ->setParameters([
'totalScore' => $user->getTotalScore(), 'totalScore' => $user->getTotalScore(),