From d8658352e0cc152aa3ec1f5c9e006a3a1c54ca3f Mon Sep 17 00:00:00 2001 From: Quentin Dequippe Date: Thu, 29 Oct 2020 15:34:43 +0100 Subject: [PATCH] Update doctrine fetchAll deprecated --- doctrine.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doctrine.rst b/doctrine.rst index eab24ae8f13..fb491df8c2b 100644 --- a/doctrine.rst +++ b/doctrine.rst @@ -812,7 +812,7 @@ In addition, you can query directly with SQL if you need to:: $stmt->execute(['price' => $price]); // returns an array of arrays (i.e. a raw data set) - return $stmt->fetchAll(); + return $stmt->fetchAllAssociative(); } With SQL, you will get back raw data, not objects (unless you use the `NativeQuery`_