Skip to content

Commit

Permalink
no longer use colon prefix in names parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
othillo committed Jun 22, 2021
1 parent b2745c6 commit d7b5f04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/DbalRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit d7b5f04

Please sign in to comment.