diff --git a/reference/forms/types/form.rst b/reference/forms/types/form.rst index b51fe597078..01e2bc332da 100644 --- a/reference/forms/types/form.rst +++ b/reference/forms/types/form.rst @@ -9,6 +9,8 @@ See :class:`Symfony\\Component\\Form\\Extension\\Core\\Type\\FormType`. The ``form`` type predefines a couple of options that are then available on all fields. +.. include:: /reference/forms/types/options/compound.rst.inc + .. include:: /reference/forms/types/options/data.rst.inc .. include:: /reference/forms/types/options/required.rst.inc diff --git a/reference/forms/types/options/compound.rst.inc b/reference/forms/types/options/compound.rst.inc new file mode 100644 index 00000000000..805294b48c3 --- /dev/null +++ b/reference/forms/types/options/compound.rst.inc @@ -0,0 +1,8 @@ +compound +~~~~~~~~ + +**type**: ``boolean`` + +This option specifies if a form is compound. This is independent of whether the +form actually has children. A form can be compound but don't have any children +at all (e.g. an empty collection form).