We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f3b07bf commit 460b74aCopy full SHA for 460b74a
doctrine.rst
@@ -557,8 +557,9 @@ Take a look at the previous example in more detail:
557
558
.. note::
559
560
- If ``flush()`` fails, an exception is thrown, which you can catch by wrapping
561
- the ``flush()`` method in a ``try...catch`` block.
+ If the ``flush()`` call fails, a ``Doctrine\ORM\ORMException`` exception
+ is thrown, which you can catch by wrapping the ``flush()`` method in a
562
+ ``try...catch`` block.
563
564
Whether creating or updating objects, the workflow is always the same. In
565
the next section, you'll see how Doctrine is smart enough to automatically
0 commit comments