ViolationMapperInterface
in
Tags
Table of Contents
Methods
- mapViolation() : mixed
- Maps a constraint violation to a form in the form tree under the given form.
Methods
mapViolation()
Maps a constraint violation to a form in the form tree under the given form.
public
mapViolation(ConstraintViolation $violation, FormInterface $form[, bool $allowNonSynchronized = false ]) : mixed
Parameters
- $violation : ConstraintViolation
- $form : FormInterface
- $allowNonSynchronized : bool = false
-
Whether to allow mapping to non-synchronized forms