Skip to content

Commit 2a64c02

Browse files
authored
Update form_collections.rst
remove Type in filepath
1 parent f119303 commit 2a64c02

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

form/form_collections.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ objects::
8484

8585
Then, create a form class so that a ``Tag`` object can be modified by the user::
8686

87-
// src/Form/Type/TagType.php
87+
// src/Form/TagType.php
8888
namespace App\Form;
8989

9090
use App\Entity\Tag;
@@ -114,7 +114,7 @@ form itself, create a form for the ``Task`` class.
114114
Notice that you embed a collection of ``TagType`` forms using the
115115
:doc:`CollectionType </reference/forms/types/collection>` field::
116116

117-
// src/Form/Type/TaskType.php
117+
// src/Form/TaskType.php
118118
namespace App\Form;
119119

120120
use App\Entity\Task;
@@ -254,7 +254,7 @@ type expects to receive exactly two, otherwise an error will be thrown:
254254
``This form should not contain extra fields``. To make this flexible,
255255
add the ``allow_add`` option to your collection field::
256256

257-
// src/Form/Type/TaskType.php
257+
// src/Form/TaskType.php
258258

259259
// ...
260260
use Symfony\Component\Form\FormBuilderInterface;
@@ -418,7 +418,7 @@ for the tags in the ``Task`` class::
418418

419419
Next, add a ``by_reference`` option to the ``tags`` field and set it to ``false``::
420420

421-
// src/Form/Type/TaskType.php
421+
// src/Form/TaskType.php
422422

423423
// ...
424424
public function buildForm(FormBuilderInterface $builder, array $options)
@@ -550,7 +550,7 @@ The solution is similar to allowing tags to be added.
550550

551551
Start by adding the ``allow_delete`` option in the form Type::
552552

553-
// src/Form/Type/TaskType.php
553+
// src/Form/TaskType.php
554554

555555
// ...
556556
public function buildForm(FormBuilderInterface $builder, array $options)

0 commit comments

Comments
 (0)