Skip to content

Commit d865835

Browse files
qdequippejaviereguiluz
authored andcommitted
Update doctrine fetchAll deprecated
1 parent f94d107 commit d865835

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)