From 996499e6fc969d0a028859bbf11b6a978514c585 Mon Sep 17 00:00:00 2001 From: Wouter J Date: Sat, 18 Jan 2014 11:09:22 +0100 Subject: [PATCH] Added exception class names --- docs/en/reference/dql-doctrine-query-language.rst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/en/reference/dql-doctrine-query-language.rst b/docs/en/reference/dql-doctrine-query-language.rst index 84936ea67..6d78482dc 100644 --- a/docs/en/reference/dql-doctrine-query-language.rst +++ b/docs/en/reference/dql-doctrine-query-language.rst @@ -929,8 +929,9 @@ the Query class. Here they are: result is either a plain collection of objects (pure) or an array where the objects are nested in the result rows (mixed). - ``Query#getSingleResult()``: Retrieves a single object. If the - result contains more than one or no object, an exception is thrown. The - pure/mixed distinction does not apply. + result contains more than one object, an ``NonUniqueResultException`` + is thrown. If the result contains no objects, an ``NoResultException`` + is thrown. The pure/mixed distinction does not apply. - ``Query#getOneOrNullResult()``: Retrieve a single object. If no object is found null will be returned. - ``Query#getArrayResult()``: Retrieves an array graph (a nested