diff --git a/src/Form/OrderItemType.php b/src/Form/OrderItemType.php index dfd10a5..49906aa 100644 --- a/src/Form/OrderItemType.php +++ b/src/Form/OrderItemType.php @@ -14,9 +14,13 @@ final class OrderItemType extends AbstractType public function buildForm(FormBuilderInterface $builder, array $options): void { $builder - ->add('name') - ->add('extras') - ->add('createdBy') + ->add(child: 'name', options: [ + 'label' => 'order item', + ]) + ->add(child: 'extras') + ->add(child: 'createdBy', options: [ + 'label' => 'your name', + ]) ; }