simply use orphanRemoval=true, instead of re-doing it badly by hand, in the controller.

orphanRemoval will *not* be the equivalent of the previous code (``$em->remove($tag);`` was commented).

what will help for Doctrine is setting ``by_reference => false`` in your form collection type, and defining the adder and remover for your elements (which is done for you when generating the entity btw)