Validator/ConstraintViolationMapper.php
protected function mapMessagesToElementCollection(array $messages, ElementCollection $children)
    {
        $children->forAll(function (ElementInterface $element) use ($messages) {
            $this->mapMessagesToElement($messages, $element);
        });
    }
protected function mapMessagesToElementCollection(array $messages, ElementCollection $children)
    {
        $children->forAll(function (ElementInterface $element) use ($messages) {
            $this->mapMessagesToElement($messages, $element);
        });
    }
protected function mapMessagesToElementCollection ( array $ messages , ElementCollection $ children ) { $ children -> forAll ( function ( ElementInterface $ element ) use ( $ messages ) { $ this -> mapMessagesToElement ( $ messages , $ element ) ; } ) ; }
Maps errors to elements children

@param array             $messages
@param ElementCollection $children
Maps errors to elements children