From be657a0a6af02b907b847716da645bac861077db Mon Sep 17 00:00:00 2001 From: Denys Pasishnyi Date: Sat, 14 Dec 2013 15:51:12 +0100 Subject: [PATCH 1/4] Create compound.rst.inc #2362 Create description for "compound" option. --- reference/forms/types/options/compound.rst.inc | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 reference/forms/types/options/compound.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..45ffe81cf05 --- /dev/null +++ b/reference/forms/types/options/compound.rst.inc @@ -0,0 +1,6 @@ +compound +~~~~~~~~ + +**type**: ``boolean`` + +This option define that if form is compound. It's independent of whether the form actually has children. A form can be compound and have no children at all, like for example an empty collection form. From e4671b887bd5dfe356b95daa7e6b13aa68245191 Mon Sep 17 00:00:00 2001 From: Denys Pasishnyi Date: Mon, 16 Dec 2013 13:29:03 +0100 Subject: [PATCH 2/4] Wrap content --- reference/forms/types/options/compound.rst.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/reference/forms/types/options/compound.rst.inc b/reference/forms/types/options/compound.rst.inc index 45ffe81cf05..48dc35784d8 100644 --- a/reference/forms/types/options/compound.rst.inc +++ b/reference/forms/types/options/compound.rst.inc @@ -3,4 +3,6 @@ compound **type**: ``boolean`` -This option define that if form is compound. It's independent of whether the form actually has children. A form can be compound and have no children at all, like for example an empty collection form. +This option define that if form is compound. It's independent of whether the +form actually has children. A form can be compound and have no children at all, +like for example an empty collection form. From 6a0c5ffe66ad0d70f49292051ab0a1b9069dffa5 Mon Sep 17 00:00:00 2001 From: Denys Pasishnyi Date: Tue, 17 Dec 2013 09:31:49 +0100 Subject: [PATCH 3/4] Add description for "compound" option #3336 --- reference/forms/types/form.rst | 2 ++ 1 file changed, 2 insertions(+) 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 From 245df287de9b8c1ff7f518271b3ac115f89db1a3 Mon Sep 17 00:00:00 2001 From: Denys Pasishnyi Date: Tue, 17 Dec 2013 18:15:19 +0100 Subject: [PATCH 4/4] Improve the description #3336 --- reference/forms/types/options/compound.rst.inc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/reference/forms/types/options/compound.rst.inc b/reference/forms/types/options/compound.rst.inc index 48dc35784d8..805294b48c3 100644 --- a/reference/forms/types/options/compound.rst.inc +++ b/reference/forms/types/options/compound.rst.inc @@ -3,6 +3,6 @@ compound **type**: ``boolean`` -This option define that if form is compound. It's independent of whether the -form actually has children. A form can be compound and have no children at all, -like for example an empty collection form. +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).