8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de286e2 commit 4221db8Copy full SHA for 4221db8
components/form/introduction.rst
@@ -687,6 +687,13 @@ object::
687
errors from that field. However, there is no way to determine which field
688
an error was originally attached to.
689
690
+.. note::
691
+
692
+ Unless you enable the :ref:`error_bubbling <reference-form-option-error-bubbling>`
693
+ option on a particular child form, ``getErrors()`` only returns the errors
694
+ of the form it is accessed on. For debugging purposes, you can use the :method:`Symfony\\Component\\Form\\Form::getErrorsAsString` method which
695
+ returns a string representation of all errors of the whole form tree.
696
697
.. _Packagist: https://packagist.org/packages/symfony/form
698
.. _Twig: http://twig.sensiolabs.org
699
.. _`Twig Configuration`: http://twig.sensiolabs.org/doc/intro.html
0 commit comments