Skip to content

Commit 34f5b0c

Browse files
committed
Some slight reordering of the form options - and also tweaking language around PATCH behavior
1 parent d5d64ce commit 34f5b0c

File tree

3 files changed

+12
-10
lines changed

3 files changed

+12
-10
lines changed

reference/forms/types/form.rst

+6-6
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,18 @@ See :class:`Symfony\\Component\\Form\\Extension\\Core\\Type\\FormType`.
99
The ``form`` type predefines a couple of options that are then available
1010
on all fields.
1111

12-
.. include:: /reference/forms/types/options/compound.rst.inc
13-
1412
.. include:: /reference/forms/types/options/data.rst.inc
1513

1614
.. include:: /reference/forms/types/options/data_class.rst.inc
1715

16+
.. include:: /reference/forms/types/options/action.rst.inc
17+
18+
.. include:: /reference/forms/types/options/method.rst.inc
19+
1820
.. include:: /reference/forms/types/options/empty_data.rst.inc
1921

22+
.. include:: /reference/forms/types/options/compound.rst.inc
23+
2024
.. include:: /reference/forms/types/options/required.rst.inc
2125

2226
.. include:: /reference/forms/types/options/label.rst.inc
@@ -62,7 +66,3 @@ on all fields.
6266
.. include:: /reference/forms/types/options/post_max_size_message.rst.inc
6367

6468
.. include:: /reference/forms/types/options/pattern.rst.inc
65-
66-
.. include:: /reference/forms/types/options/action.rst.inc
67-
68-
.. include:: /reference/forms/types/options/method.rst.inc

reference/forms/types/options/action.rst.inc

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ action
66

77
**type**: ``string`` **default**: empty string
88

9-
This option specifies where to send the form's data on submission (usually an
9+
This option specifies where to send the form's data on submission (usually a
1010
URI). Its value is rendered as the ``action`` attribute of the ``form``
1111
element. An empty value is considered a same-document reference, i.e. the form
1212
will be submitted to the same URI that rendered the form.

reference/forms/types/options/method.rst.inc

+5-3
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ used to decide whether to process the form submission in the
2626

2727
.. note:
2828

29-
Only the PATCH method allows submitting partial data without that missing
30-
fields are set to ``null`` in the underlying data (preserving default
31-
values, if any).
29+
The PATCH method allows submitting partial data. In other words, if the
30+
submitted form data is missing certain fields, those will be ignored
31+
and the default values (if any) will be used. With all other HTTP methods,
32+
if the submitted form data is missing some fields, those fields are set
33+
to ``null``.

0 commit comments

Comments
 (0)