diff --git a/cookbook/form/direct_submit.rst b/cookbook/form/direct_submit.rst index 108e3504756..7ddc42525b7 100644 --- a/cookbook/form/direct_submit.rst +++ b/cookbook/form/direct_submit.rst @@ -84,6 +84,13 @@ method, pass the submitted data directly to $form->get('firstName')->submit('Fabien'); +.. tip:: + + When submitting a form via a "PATCH" request, you may want to update only a few + submitted fields. To achieve this, you may pass an optional second boolean + parameter to ``submit()``. Passing ``false`` will remove any missing fields + within the form object. Otherwise, the mising fields will be set to ``null``. + .. _cookbook-form-submit-request: Passing a Request to Form::submit() (Deprecated)