Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 3af1d26

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

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

‎reference/configuration/doctrine.rst

Copy file name to clipboardExpand all lines: reference/configuration/doctrine.rst
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.