Skip to content

Commit 5c8154b

Browse files
Vincent AmstoutzOskarStark
Vincent Amstoutz
authored andcommitted
Fix doctrine/dbal deprecation using Statement::executeQuery
1 parent c1645f4 commit 5c8154b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doctrine.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -998,8 +998,8 @@ In addition, you can query directly with SQL if you need to::
998998
WHERE p.price > :price
999999
ORDER BY p.price ASC
10001000
';
1001-
$stmt = $conn->prepare($sql);
1002-
$resultSet = $stmt->executeQuery(['price' => $price]);
1001+
1002+
$resultSet = $conn->executeQuery($sql, ['price' => $price]);
10031003

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

0 commit comments

Comments
 (0)