Skip to content

Commit

Permalink
minor #4461 Update doctrine.rst (guiguiboy)
Browse files Browse the repository at this point in the history
This PR was submitted for the 2.5 branch but it was merged into the 2.3 branch instead (closes #4461).

Discussion
----------

Update doctrine.rst

fixed typo

Commits
-------

cb0865d Update doctrine.rst
  • Loading branch information
wouterj committed Nov 14, 2014
2 parents 81fc1c6 + cb0865d commit 0d91cc5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions book/doctrine.rst
Original file line number Diff line number Diff line change
Expand Up @@ -747,8 +747,8 @@ normal ``Query`` object, which can be used to get the result of the query.
(``:price`` in the example above) as it prevents SQL injection attacks.

The ``getResult()`` method returns an array of results. To get only one
result, you can use ``getSingleResult()`` (which throws exception there is no
result) or ``getOneOrNullResult()``::
result, you can use ``getSingleResult()`` (which throws an exception if there
is no result) or ``getOneOrNullResult()``::

$product = $query->getOneOrNullResult();

Expand Down

0 comments on commit 0d91cc5

Please sign in to comment.