Skip to content

Commit 88f67dc

Browse files
committed
minor #16354 [Doctrine] use "executeQuery" instead of "execute" (samnela)
This PR was merged into the 5.3 branch. Discussion ---------- [Doctrine] use "executeQuery" instead of "execute" <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `6.x` for features of unreleased versions). --> Statement::execute() is deprecated, use Statement::executeQuery() instead . see doctrine/dbal#4580 Commits ------- c3f359e [Doctrine] use executeQuery instead of execute
2 parents 0efdd5b + c3f359e commit 88f67dc

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)