DataMapper/RequestDataMapper.php
protected function mapRequestDataToElementCollection($data, ElementCollection $children)
    {
        $children->forAll(function (ElementInterface $element) use ($data) {
            $propertyPath = $this->getPropertyPathAsIndex($element);
            if (array_key_exists($element->getName(), $data)) {
                $values = $this->propertyAccessor->getValue($data, $propertyPath);
                $this->mapRequestDataToElement($values, $element);
            }
        });
    }
protected function mapRequestDataToElementCollection($data, ElementCollection $children)
    {
        $children->forAll(function (ElementInterface $element) use ($data) {
            $propertyPath = $this->getPropertyPathAsIndex($element);
            if (array_key_exists($element->getName(), $data)) {
                $values = $this->propertyAccessor->getValue($data, $propertyPath);
                $this->mapRequestDataToElement($values, $element);
            }
        });
    }
protected function mapRequestDataToElementCollection ( $ data , ElementCollection $ children ) { $ children -> forAll ( function ( ElementInterface $ element ) use ( $ data ) { $ propertyPath = $ this -> getPropertyPathAsIndex ( $ element ) ; if ( array_key_exists ( $ element -> getName ( ) , $ data ) ) { $ values = $ this -> propertyAccessor -> getValue ( $ data , $ propertyPath ) ; $ this -> mapRequestDataToElement ( $ values , $ element ) ; } } ) ; }
Recursively maps data to children

@param mixed             $data
@param ElementCollection $children
Recursively maps data to children