1
0
mirror of synced 2024-12-14 15:16:04 +03:00

Document AbstractQuery#getOneOrNullResult()

This commit is contained in:
Benjamin Eberlei 2011-10-26 00:54:06 +03:00
parent 196fd79d5f
commit e98cb4f145

View File

@ -858,8 +858,10 @@ 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 object, an exception is thrown. The
result contains more than one or no object, an exception 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
array) that is largely interchangeable with the object graph
generated by ``Query#getResult()`` for read-only purposes.