diff --git a/doctrine.rst b/doctrine.rst index c29fa8a827f..0112eb5428e 100644 --- a/doctrine.rst +++ b/doctrine.rst @@ -853,10 +853,10 @@ In addition, you can query directly with SQL if you need to:: ORDER BY p.price ASC '; $stmt = $conn->prepare($sql); - $stmt->execute(['price' => $price]); + $resultSet = $stmt->executeQuery(['price' => $price]); // returns an array of arrays (i.e. a raw data set) - return $stmt->fetchAllAssociative(); + return $resultSet->fetchAllAssociative(); } }