Closed
Description
Q | A |
---|---|
Bug report? | no |
Feature request? | yes |
BC Break report? | no |
RFC? | yes |
Symfony version | 3.3.9 |
I have the problem with ViolationMapper. It skip values that was not submitted. The problem appear in validation groups. If field is not submitted, but mentioned in validation group. Validator found constraint, but form not map it.
It can be solved by object direct validation. But here appear problem how combine form errors and object. Also i should validate object twice.
Can in method acceptsErrors, $form->isSubmitted() check be optional? Or ViolationMapper added to FormTypeValidatorExtension as service