Validator/ConstraintViolationMapper.php
public function mapErrorsToForm(ConstraintViolationListInterface $errors, FormInterface $form)
    {
        $messages = $this->extractMessages($errors);

        $this->mapMessagesToElementCollection($messages, $form->getChildren());
    }
public function mapErrorsToForm(ConstraintViolationListInterface $errors, FormInterface $form)
    {
        $messages = $this->extractMessages($errors);

        $this->mapMessagesToElementCollection($messages, $form->getChildren());
    }
public function mapErrorsToForm ( ConstraintViolationListInterface $ errors , FormInterface $ form ) { $ messages = $ this -> extractMessages ( $ errors ) ; $ this -> mapMessagesToElementCollection ( $ messages , $ form -> getChildren ( ) ) ; }
Maps errors messages to all form elements

@param ConstraintViolationListInterface $errors
@param FormInterface                    $form
Maps errors messages to all form elements