Skip to content

Commit

Permalink
Merge pull request #12 from acornforth/master
Browse files Browse the repository at this point in the history
Fix for databases with a native 'Boolean' type
  • Loading branch information
loevgaard authored Aug 21, 2019
2 parents cd010c5 + 3f77784 commit 8c7cd0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Repository/RedirectRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 8c7cd0c

Please sign in to comment.