Skip to content
Prev Previous commit
Next Next commit
Update form_collections.rst
  • Loading branch information
francebenoit authored Nov 15, 2018
commit 24fb4fc7f641e39d7e5be5363c406c0472584a46
10 changes: 5 additions & 5 deletions form/form_collections.rst
Original file line number Diff line number Diff line change
Expand Up @@ -748,13 +748,13 @@ the relationship between the removed ``Tag`` and ``Task`` object.
each Tag object itself.


Optional helper
~~~~~~~~~~~~~~~~~~~~~~
You can optionnally reduce the code in your controller and make it reusable to handle other embedded form.
Optionnal helper to handle tag removal
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
You can optionnally reduce the code in your controller and make a reusable service to handle all your embedded form.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same typo in optionNaly and only one L


First create a helper :
First create a helper

// App\Helper
// src\Helper
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

src/Helper/Helper.php

but we should find a better name than „Helper“

use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\ORM\EntityManagerInterface;

Expand Down