Skip to content

Commit

Permalink
Fix doctrine/dbal deprecation using Statement::executeQuery
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent Amstoutz authored and OskarStark committed Jun 19, 2023
1 parent c1645f4 commit 5c8154b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions doctrine.rst
Expand Up @@ -998,8 +998,8 @@ In addition, you can query directly with SQL if you need to::
WHERE p.price > :price
ORDER BY p.price ASC
';
$stmt = $conn->prepare($sql);
$resultSet = $stmt->executeQuery(['price' => $price]);

$resultSet = $conn->executeQuery($sql, ['price' => $price]);

// returns an array of arrays (i.e. a raw data set)
return $resultSet->fetchAllAssociative();
Expand Down

0 comments on commit 5c8154b

Please sign in to comment.