Skip to content

Commit cd12186

Browse files
avorobievweaverryan
authored andcommitted
Update doctrine.rst
Variable name should be in plural form for collection
1 parent d9f809d commit cd12186

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

book/doctrine.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ to easily fetch objects based on multiple conditions::
600600
$product = $repository->findOneBy(array('name' => 'foo', 'price' => 19.99));
601601

602602
// query for all products matching the name, ordered by price
603-
$product = $repository->findBy(
603+
$products = $repository->findBy(
604604
array('name' => 'foo'),
605605
array('price' => 'ASC')
606606
);

0 commit comments

Comments
 (0)