Merge pull request #913 from WouterJ/patch-1
Added exception class names
This commit is contained in:
commit
a83f5df47c
@ -929,8 +929,9 @@ the Query class. Here they are:
|
|||||||
result is either a plain collection of objects (pure) or an array
|
result is either a plain collection of objects (pure) or an array
|
||||||
where the objects are nested in the result rows (mixed).
|
where the objects are nested in the result rows (mixed).
|
||||||
- ``Query#getSingleResult()``: Retrieves a single object. If the
|
- ``Query#getSingleResult()``: Retrieves a single object. If the
|
||||||
result contains more than one or no object, an exception is thrown. The
|
result contains more than one object, an ``NonUniqueResultException``
|
||||||
pure/mixed distinction does not apply.
|
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
|
- ``Query#getOneOrNullResult()``: Retrieve a single object. If no
|
||||||
object is found null will be returned.
|
object is found null will be returned.
|
||||||
- ``Query#getArrayResult()``: Retrieves an array graph (a nested
|
- ``Query#getArrayResult()``: Retrieves an array graph (a nested
|
||||||
|
Loading…
x
Reference in New Issue
Block a user