Skip to content

Commit cb0865d

Browse files
guiguiboywouterj
authored andcommitted
Update doctrine.rst
1 parent 81fc1c6 commit cb0865d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

book/doctrine.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -747,8 +747,8 @@ normal ``Query`` object, which can be used to get the result of the query.
747747
(``:price`` in the example above) as it prevents SQL injection attacks.
748748

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

753753
$product = $query->getOneOrNullResult();
754754

0 commit comments

Comments
 (0)