Skip to content

Commit 0d91cc5

Browse files
committed
minor #4461 Update doctrine.rst (guiguiboy)
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
2 parents 81fc1c6 + cb0865d commit 0d91cc5

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)