Fix PostgreSQL query

PostgreSQL doesn’t like when we compare interger and boolean :)
This commit is contained in:
Jeremy Benoist 2016-10-08 20:26:06 +02:00
parent 876d77a67d
commit 3f60446756
No known key found for this signature in database
GPG Key ID: BCA73962457ACC3C

View File

@ -48,7 +48,7 @@ class UserRepository extends EntityRepository
{
return $this->createQueryBuilder('u')
->select('count(u)')
->andWhere('u.expired = 0')
->andWhere('u.expired = false')
->getQuery()
->getSingleScalarResult();
}