Category: collections

Symfony embedded order form map data back

I’m creating a order form with embedded data like orderItems (collection) in Symfony 4.5. My OrderType look like this: <?php class OrderType extends BaseOrderType { /** * {@inheritDoc} */ public function buildForm(FormBuilderInterface $builder, array $options): void { $builder->add(‘note’, TextareaType::class, array(…