Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit81b69ee

Browse files
ghertkowouterj
authored andcommitted
callfetchAllAssociative for a result set
`fetchAllAssociative()` is not available for class "Doctrine\DBAL\Statement"
1 parent9834707 commit81b69ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎doctrine.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -853,10 +853,10 @@ In addition, you can query directly with SQL if you need to::
853853
ORDER BY p.price ASC
854854
';
855855
$stmt = $conn->prepare($sql);
856-
$stmt->execute(['price' => $price]);
856+
$resultSet = $stmt->executeQuery(['price' => $price]);
857857

858858
// returns an array of arrays (i.e. a raw data set)
859-
return $stmt->fetchAllAssociative();
859+
return $resultSet->fetchAllAssociative();
860860
}
861861
}
862862

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp