Skip to content

Commit 3af1d26

Browse files
jordanjixOskarStark
authored andcommitted
Update doctrine.rst
Replace fetchAll() by fetchAllAssociative() method.
1 parent d3bc98d commit 3af1d26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reference/configuration/doctrine.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ you can access it using the ``getConnection()`` method and the name of the conne
158158
public function someMethod(ManagerRegistry $doctrine)
159159
{
160160
$connection = $doctrine->getConnection('customer');
161-
$result = $connection->fetchAll('SELECT name FROM customer');
161+
$result = $connection->fetchAllAssociative('SELECT name FROM customer');
162162

163163
// ...
164164
}

0 commit comments

Comments
 (0)