Closed migmax48 closed 4 years ago
You need to add the correct validation group to all annotations. 😏
Thanks for the reply. I added this on the form:
public function configureOptions(OptionsResolver $resolver) { $resolver->setDefaults([ 'data_class' => Account::class, 'validation_groups' => ['signup'], ]); }
I added this on the entity
` /**
but nothing changes
Solved. I've added this elemnt on flow
protected function loadStepsConfig() {
return [
[
'label' => 'Dati Account',
'form_type' => SignupFormType::class,
'form_options' => [
'validation_groups' => ['signup'],
],
],
Thank you!
Hi, I've developed on Symfony 4.x a multistep flow on the same form entity. Both Assert and Constraint not working.
Flow:
My Form:
My action:
Twig Template:
Entity:
Could anyone help me?