From cb0865d0bf77c572d4bb441ab27de4171e889fa6 Mon Sep 17 00:00:00 2001 From: guiguiboy Date: Thu, 13 Nov 2014 18:10:26 +0100 Subject: [PATCH] Update doctrine.rst --- book/doctrine.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/book/doctrine.rst b/book/doctrine.rst index 8859cc2a9f4..871695ff21d 100644 --- a/book/doctrine.rst +++ b/book/doctrine.rst @@ -747,8 +747,8 @@ normal ``Query`` object, which can be used to get the result of the query. (``:price`` in the example above) as it prevents SQL injection attacks. The ``getResult()`` method returns an array of results. To get only one -result, you can use ``getSingleResult()`` (which throws exception there is no -result) or ``getOneOrNullResult()``:: +result, you can use ``getSingleResult()`` (which throws an exception if there +is no result) or ``getOneOrNullResult()``:: $product = $query->getOneOrNullResult();