Skip to content

[Validation] GroupSequence and validation groups should work together #20929

Closed
@shinab

Description

@shinab
Q A
Bug report? yes
Feature request? no
BC Break report? no
RFC? no
Symfony version 3.2.0

Mixing GroupSequence and validation_groups should be working as it say in PR #10287

For now, GroupSequence alone is working as expected, but when validation_groups is added, validation does not fail on first error.

Forked version here : https://github.com/shinab/symfony-standard

Test scenario
Put a dot in the field and valid

With current implementation, validation should fail directly after group3, but it passed thougt group2 and group1 too.

If you comment validation_groups in MyEntityType, validation fail after group1 as expected.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions