diff --git a/book/doctrine.rst b/book/doctrine.rst index 1a9cdbb177d..f8bcdd67611 100644 --- a/book/doctrine.rst +++ b/book/doctrine.rst @@ -457,7 +457,7 @@ to easily fetch objects based on multiple conditions:: // query for all products matching the name, ordered by price $product = $repository->findBy( array('name' => 'foo'), - array('price', 'ASC') + array('price' => 'ASC') ); .. tip::