Skip to content

Commit

Permalink
Merge pull request #7443 from naitsirch/fix/issue6793
Browse files Browse the repository at this point in the history
Added doc about exception in Query#getOneOrNullResult()
  • Loading branch information
lcobucci authored Oct 2, 2019
2 parents f9e2ae3 + 1c45e1b commit 7526adc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/en/reference/dql-doctrine-query-language.rst
Original file line number Diff line number Diff line change
Expand Up @@ -996,8 +996,9 @@ the Query class. Here they are:
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#getOneOrNullResult()``: Retrieve a single object. If the
result contains more than one object, a ``NonUniqueResultException``
is thrown. 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.
Expand Down

0 comments on commit 7526adc

Please sign in to comment.