DataMapper/ModelDataMapper.php
protected function mapElementToModelData(ElementInterface $child)
    {
        $this->setModelValueFromElement($child);
        
        $children = $child->getChildren();
        if ($children->count()) {
            $this->mapElementCollectionToModelData($children);
        }
    }
protected function mapElementToModelData(ElementInterface $child)
    {
        $this->setModelValueFromElement($child);
        
        $children = $child->getChildren();
        if ($children->count()) {
            $this->mapElementCollectionToModelData($children);
        }
    }
protected function mapElementToModelData ( ElementInterface $ child ) { $ this -> setModelValueFromElement ( $ child ) ; $ children = $ child -> getChildren ( ) ; if ( $ children -> count ( ) ) { $ this -> mapElementCollectionToModelData ( $ children ) ; } }
Maps element value to model data

@param ElementInterface $child
Maps element value to model data