Skip to content

Commit a166dc6

Browse files
committed
Merge branch '4.4' into 5.3
* 4.4: call `fetchAllAssociative` for a result set
2 parents a4ca8e2 + 6cfce6a commit a166dc6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doctrine.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -851,10 +851,10 @@ In addition, you can query directly with SQL if you need to::
851851
ORDER BY p.price ASC
852852
';
853853
$stmt = $conn->prepare($sql);
854-
$stmt->executeQuery(['price' => $price]);
854+
$resultSet = $stmt->executeQuery(['price' => $price]);
855855

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

0 commit comments

Comments
 (0)