Skip to content

Commit 194765c

Browse files
javiereguiluzxabbuh
authored andcommitted
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
1 parent 788ffe2 commit 194765c

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
@@ -326,7 +326,7 @@ entry_type
326326
The ``entry_type`` option was introduced in Symfony 2.8 and replaces
327327
``type``, which is available prior to 2.8.
328328

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

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

0 commit comments

Comments
 (0)