Skip to content

Commit

Permalink
add parameter types in query builder
Browse files Browse the repository at this point in the history
  • Loading branch information
javiercno committed Nov 30, 2023
1 parent 0719891 commit abd3a9e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ public function get(): ?array
if ($this->driverConnection->getDatabasePlatform() instanceof OraclePlatform) {
$query = $this->createQueryBuilder('w')
->where('w.id IN ('.str_replace('SELECT a.* FROM', 'SELECT a.id FROM', $sql).')')
->setParameters($query->getParameters());
->setParameters($query->getParameters(), $query->getParameterTypes());

if (method_exists(QueryBuilder::class, 'forUpdate')) {
$query->forUpdate();
Expand Down

0 comments on commit abd3a9e

Please sign in to comment.