Skip to content

Commit ae8f5a5

Browse files
committed
minor #16742 [Doctrine] Fix fetch method (yourwebmaker)
This PR was submitted for the 6.0 branch but it was merged into the 4.4 branch instead. Discussion ---------- [Doctrine] Fix fetch method <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `6.x` for features of unreleased versions). --> Commits ------- 74e6174 Fix fetch method
2 parents 2235259 + 74e6174 commit ae8f5a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doctrine/dbal.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ object::
5555
{
5656
public function index(Connection $connection): Response
5757
{
58-
$users = $connection->fetchAll('SELECT * FROM users');
58+
$users = $connection->fetchAllAssociative('SELECT * FROM users');
5959

6060
// ...
6161
}

0 commit comments

Comments
 (0)