Skip to content

[Validation] Assert Valid with validation_groups #36157

Closed
@aless673

Description

@aless673

Symfony version(s) affected: 4.4.5

Description
Using the Valid assert with two validation_groups does not fire all relation asserts

How to reproduce
Install this repo : https://github.com/aless673/bug_valid_assert

composer install
bin/console do:da:cr
bin/console do:sc:cr

Run it on localhost

The Default group is fired with the NotNull assert.
The validate_user_name group is not fired, and the NotBlank assert is ignored

If i remove groups from the Valid assert, it is working fine (because groups are setted up on form creation) but i lose the flexibility of groups on this assert !

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