diff --git a/src/Form/BankType.php b/src/Form/BankType.php new file mode 100644 index 00000000..bce43f96 --- /dev/null +++ b/src/Form/BankType.php @@ -0,0 +1,29 @@ +add('name', TextType::class, [ + 'label' => 'Nom de la banque', + 'required' => true + ]) + ; + } + + public function configureOptions(OptionsResolver $resolver) + { + $resolver->setDefaults([ + 'data_class' => Bank::class, + ]); + } +}