diff options
author | Jeremy Benoist <jeremy.benoist@gmail.com> | 2016-10-08 20:26:06 +0200 |
---|---|---|
committer | Jeremy Benoist <jeremy.benoist@gmail.com> | 2016-10-08 20:26:06 +0200 |
commit | 3f604467564e86623513107161587f7e34d4f369 (patch) | |
tree | e92fce17f77fd41d0de31e4a8ffded88ed707e93 /src/Wallabag/UserBundle | |
parent | 876d77a67d1415c1be56f08e9a2d3b1d294bb61f (diff) | |
download | wallabag-3f604467564e86623513107161587f7e34d4f369.tar.gz wallabag-3f604467564e86623513107161587f7e34d4f369.tar.zst wallabag-3f604467564e86623513107161587f7e34d4f369.zip |
Fix PostgreSQL query
PostgreSQL doesn’t like when we compare interger and boolean :)
Diffstat (limited to 'src/Wallabag/UserBundle')
-rw-r--r-- | src/Wallabag/UserBundle/Repository/UserRepository.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Wallabag/UserBundle/Repository/UserRepository.php b/src/Wallabag/UserBundle/Repository/UserRepository.php index 178761e6..445edb3c 100644 --- a/src/Wallabag/UserBundle/Repository/UserRepository.php +++ b/src/Wallabag/UserBundle/Repository/UserRepository.php | |||
@@ -48,7 +48,7 @@ class UserRepository extends EntityRepository | |||
48 | { | 48 | { |
49 | return $this->createQueryBuilder('u') | 49 | return $this->createQueryBuilder('u') |
50 | ->select('count(u)') | 50 | ->select('count(u)') |
51 | ->andWhere('u.expired = 0') | 51 | ->andWhere('u.expired = false') |
52 | ->getQuery() | 52 | ->getQuery() |
53 | ->getSingleScalarResult(); | 53 | ->getSingleScalarResult(); |
54 | } | 54 | } |