1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-09-15 18:57:05 +00:00

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') return $this->createQueryBuilder('u')
->select('count(u)') ->select('count(u)')
->andWhere('u.expired = 0') ->andWhere('u.expired = false')
->getQuery() ->getQuery()
->getSingleScalarResult(); ->getSingleScalarResult();
} }