From d7b5f043b125f00936b6486f71de8553830221f2 Mon Sep 17 00:00:00 2001 From: othillo Date: Mon, 21 Jun 2021 09:23:17 +0200 Subject: [PATCH] no longer use colon prefix in names parameters --- src/DbalRepository.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/DbalRepository.php b/src/DbalRepository.php index 45ba01a..ca21188 100644 --- a/src/DbalRepository.php +++ b/src/DbalRepository.php @@ -102,11 +102,11 @@ protected function createAndExecuteQuery(Criteria $criteria, string $sagaId): Re ->select('*') ->from($this->tableName) ->where('done = :done') - ->setParameter(':done', false); + ->setParameter('done', false); foreach ($criteria->getComparisons() as $key => $value) { $queryBuilder->andWhere(sprintf('%s = :%s', $key, $key)); - $queryBuilder->setParameter(sprintf(':%s', $key), $value); + $queryBuilder->setParameter(sprintf('%s', $key), $value); } return $queryBuilder->execute();