1
0
mirror of synced 2025-02-20 22:23:14 +03:00

Merge pull request #913 from WouterJ/patch-1

Added exception class names
This commit is contained in:
Marco Pivetta 2014-01-19 22:02:34 -08:00
commit a83f5df47c

View File

@ -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