Form collection
- You were missing the
removeRelatedTrack
method in Album - Some JS is required to handle the dynamics
- The
orphanRemoval=true
allows, when some element is removed, to remove the linked entity - For more info, check http://symfony.com/doc/3.3/form/form_collections.html
Is this what you were looking for? :)