Skip to content

Commit b1fb1fe

Browse files
committed
Merge branch '5.1' into 5.x
* 5.1: Update doctrine fetchAll deprecated
2 parents 8f176c5 + 905c051 commit b1fb1fe

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
@@ -808,7 +808,7 @@ In addition, you can query directly with SQL if you need to::
808808
$stmt->execute(['price' => $price]);
809809

810810
// returns an array of arrays (i.e. a raw data set)
811-
return $stmt->fetchAll();
811+
return $stmt->fetchAllAssociative();
812812
}
813813

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

0 commit comments

Comments
 (0)