From 3af1d260a819d77675d4628e0e4cccd338d72179 Mon Sep 17 00:00:00 2001 From: jordanjix Date: Sat, 27 Jan 2024 09:16:20 +0100 Subject: [PATCH] Update doctrine.rst Replace fetchAll() by fetchAllAssociative() method. --- reference/configuration/doctrine.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reference/configuration/doctrine.rst b/reference/configuration/doctrine.rst index c49122575a0..ad6d89195cd 100644 --- a/reference/configuration/doctrine.rst +++ b/reference/configuration/doctrine.rst @@ -158,7 +158,7 @@ you can access it using the ``getConnection()`` method and the name of the conne public function someMethod(ManagerRegistry $doctrine) { $connection = $doctrine->getConnection('customer'); - $result = $connection->fetchAll('SELECT name FROM customer'); + $result = $connection->fetchAllAssociative('SELECT name FROM customer'); // ... }