Symfony\Component\Form\Extension\Validator\ViolationMapper\ViolationMapperInterface::mapViolation
Maps a constraint violation to a form in the form tree under the given form.
Signature
public function mapViolation(ConstraintViolation
$violation,
[FormInterface
$form = false,
[Boolean
$allowNonSynchronized = false]] )
Parameters
$violation
— Symfony\Component\Validator\ConstraintViolation- The violation to map.
$form
— Symfony\Component\Form\FormInterface- The root form of the tree
to map it to. $allowNonSynchronized
— object- Whether to allow
mapping to non-synchronized forms.