Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f6feb71

Browse files
committed
minor #8831 Update collection.rst (babaorum)
This PR was submitted for the 4.0 branch but it was merged into the 3.3 branch instead (closes #8831). Discussion ---------- Update collection.rst A default value is set and seems to work for the `entry_type` option. https://github.com/symfony/symfony/blob/3ce9c29ae44692555d15983c7537187f5566e9ce/src/Symfony/Component/Form/Extension/Core/Type/CollectionType.php#L97 Commits ------- 5084ad1 Update collection.rst
2 parents ec0075a + 5084ad1 commit f6feb71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

reference/forms/types/collection.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ type::
316316
entry_type
317317
~~~~~~~~~~
318318

319-
**type**: ``string`` or :class:`Symfony\\Component\\Form\\FormTypeInterface` **required**
319+
**type**: ``string`` or :class:`Symfony\\Component\\Form\\FormTypeInterface` **default**: Symfony\\Component\\Form\\Extension\\Core\\Type\\TextType
320320

321321
This is the field type for each item in this collection (e.g. ``TextType``,
322322
``ChoiceType``, etc). For example, if you have an array of email addresses,

0 commit comments

Comments
 (0)