Skip to content

Commit f803d1e

Browse files
committed
minor #14498 Update doctrine fetchAll (deprecated) (qdequippe)
This PR was submitted for the 5.x branch but it was merged into the 4.4 branch instead. Discussion ---------- Update doctrine fetchAll (deprecated) Since doctrine/dbal 2.11 [Deprecated FetchMode and the corresponding methods](https://github.com/doctrine/dbal/blob/2.12.x/UPGRADE.md#deprecated-fetchmode-and-the-corresponding-methods) > The Statement::fetchAll() method is deprecated in favor of Result::fetchAllNumeric(), ::fetchAllAssociative() and ::fetchFirstColumn() Commits ------- d865835 Update doctrine fetchAll deprecated
2 parents f94d107 + d865835 commit f803d1e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doctrine.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -812,7 +812,7 @@ In addition, you can query directly with SQL if you need to::
812812
$stmt->execute(['price' => $price]);
813813

814814
// returns an array of arrays (i.e. a raw data set)
815-
return $stmt->fetchAll();
815+
return $stmt->fetchAllAssociative();
816816
}
817817

818818
With SQL, you will get back raw data, not objects (unless you use the `NativeQuery`_

0 commit comments

Comments
 (0)