Skip to content

Commit 460b74a

Browse files
Integrated improvement by javiereguiluz
1 parent f3b07bf commit 460b74a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

doctrine.rst

+3-2
Original file line numberDiff line numberDiff line change
@@ -557,8 +557,9 @@ Take a look at the previous example in more detail:
557557

558558
.. note::
559559

560-
If ``flush()`` fails, an exception is thrown, which you can catch by wrapping
561-
the ``flush()`` method in a ``try...catch`` block.
560+
If the ``flush()`` call fails, a ``Doctrine\ORM\ORMException`` exception
561+
is thrown, which you can catch by wrapping the ``flush()`` method in a
562+
``try...catch`` block.
562563

563564
Whether creating or updating objects, the workflow is always the same. In
564565
the next section, you'll see how Doctrine is smart enough to automatically

0 commit comments

Comments
 (0)