From 3f77784a561c921d259700b6dabbe5feee49b622 Mon Sep 17 00:00:00 2001 From: Andrew Cornforth Date: Wed, 21 Aug 2019 12:34:17 +0100 Subject: [PATCH] Fix for databases with a native 'Boolean' type --- src/Repository/RedirectRepository.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Repository/RedirectRepository.php b/src/Repository/RedirectRepository.php index 05fe154..f3c4b41 100644 --- a/src/Repository/RedirectRepository.php +++ b/src/Repository/RedirectRepository.php @@ -18,11 +18,11 @@ public function findEnabledBySource(string $source, bool $only404 = false): ?Red { $qb = $this->createQueryBuilder('r') ->andWhere('r.source = :source') - ->andWhere('r.enabled = 1') + ->andWhere('r.enabled = true') ->setParameter('source', $source); if ($only404) { - $qb->andWhere('r.only404 = 1'); + $qb->andWhere('r.only404 = true'); } return $qb->getQuery()