From 153219a34a5d1fc7aef38cf17d70e8d4e1b40934 Mon Sep 17 00:00:00 2001 From: Michael Phillips Date: Fri, 1 Apr 2016 01:41:05 -0500 Subject: [PATCH] Added tip for optional second parameter for form submissions. --- cookbook/form/direct_submit.rst | 7 +++++++ 1 file changed, 7 insertions(+) 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)