Skip to content

Commit c3f359e

Browse files
authored
[Doctrine] use executeQuery instead of execute
1 parent 4b7df6f commit c3f359e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doctrine.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -851,7 +851,7 @@ In addition, you can query directly with SQL if you need to::
851851
ORDER BY p.price ASC
852852
';
853853
$stmt = $conn->prepare($sql);
854-
$stmt->execute(['price' => $price]);
854+
$stmt->executeQuery(['price' => $price]);
855855

856856
// returns an array of arrays (i.e. a raw data set)
857857
return $stmt->fetchAllAssociative();

0 commit comments

Comments
 (0)