Skip to content

Commit

Permalink
feat(orc-3198): clean-up params naming
Browse files Browse the repository at this point in the history
  • Loading branch information
borislt committed Aug 28, 2024
1 parent 3aec82a commit 2d724ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Context/ORMContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ private function seeInRepository(int $count, string $entityClass, ?array $params

if (null !== $params) {
foreach ($params as $columnName => $columnValue) {
$query->andWhere("e.$columnName = :value$columnName")
->setParameter("value$columnName", $columnValue);
$query->andWhere(sprintf('e.%s = :%s', $columnName, $columnName))
->setParameter($columnName, $columnValue);
}
}

Expand Down

0 comments on commit 2d724ed

Please sign in to comment.