Skip to content

Commit

Permalink
minor #6420 Added tip for optional second parameter for form submissi…
Browse files Browse the repository at this point in the history
…ons. (Michael Phillips)

This PR was merged into the 2.3 branch.

Discussion
----------

Added tip for optional second parameter for form submissions.

| Q              | A
| ------------- | ---
| Doc fix?      | yes
| New docs?     | no
| Applies to    | all
| Fixed tickets | #6415

Commits
-------

153219a Added tip for optional second parameter for form submissions.
  • Loading branch information
xabbuh committed Apr 6, 2016
2 parents b73e3f4 + 153219a commit 94186ea
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cookbook/form/direct_submit.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 94186ea

Please sign in to comment.