I’ve embedded forms with CollectionType: and ‘battlePages’ is an ArrayCollection with many elements. But ‘$entity’ is empty however collection was walking through. My goal would be to get BattlePage entity’s data in the ‘BattlePageCollectionType’ which is my second in examples ($entity). Anybody had have similar issues? Answer The $builder->getData(); method doesn’t return an entity. You should use Form Events Example
Tag: formbuilder
Duplicating form on button click
I have a very simple form with 2 fields, all I want to do is a button where the user could duplicate this form to add multiple entries in one batch. What i would like to do (I can’t integrate images …