From 27e714ed3624bb5043b717bac9b0acc2e5d81b07 Mon Sep 17 00:00:00 2001 From: Yohann Durand <34881241+Yohann76@users.noreply.github.com> Date: Thu, 20 Feb 2020 00:58:52 +0100 Subject: [PATCH] Update form.rst --- components/form.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/components/form.rst b/components/form.rst index 9de26b7ea26..9e01942c73a 100644 --- a/components/form.rst +++ b/components/form.rst @@ -763,7 +763,9 @@ method. This is useful when you'd like to validate the form without showing validation errors to the user (i.e. during a partial AJAX submission or :doc:`dynamic form modification `). -Because clearing the errors makes the form valid, ``clearErrors()`` should only +Because clearing the errors makes the form valid, +:method:`Symfony\\Component\\Form\\ClearableErrorsInterface::clearErrors` should only + be called after testing whether the form is valid. Learn more