From 5c8154b510acd222226682c3a7b539b6a179d3ef Mon Sep 17 00:00:00 2001 From: Vincent Amstoutz Date: Sat, 17 Jun 2023 19:10:12 +0200 Subject: [PATCH] Fix `doctrine/dbal` deprecation using `Statement::executeQuery` --- doctrine.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doctrine.rst b/doctrine.rst index ff8eaa2479a..74bbd073373 100644 --- a/doctrine.rst +++ b/doctrine.rst @@ -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();