craue / CraueFormFlowBundle

Multi-step forms for your Symfony project.
MIT License
736 stars 118 forks source link

GroupSequence not working With Craue #300

Closed jmwierzbicki closed 6 years ago

jmwierzbicki commented 6 years ago
                'form_options' => [
                    'validation_groups' => new GroupSequence(['Step1', 'ApiCheckStep1']), 
                ],

Short story. I need to validate field, and then access external API to check if this value is not already taken. If i set GroupSequence in Data object it works, but it sequentially validates given groups on every step and this means that on step 2>3 i have to wait for validation from step1.

My code sample throws:

Warning: Illegal offset type in isset or empty

Is there any workaround?

craue commented 6 years ago

Good catch! I just tagged 3.0.1 which supports using a GroupSequence.