public function toMappedArray(array $array)
    {
        $mappedArray = [];
        foreach ($this->getMapper() as $from => $to) {
            $mappedArray[$to] = $array[$from];
        }
        return $mappedArray;
    }
public function toMappedArray(array $array)
    {
        $mappedArray = [];
        foreach ($this->getMapper() as $from => $to) {
            $mappedArray[$to] = $array[$from];
        }
        return $mappedArray;
    }
public function toMappedArray ( array $ array ) { $ mappedArray = [ ] ; foreach ( $ this -> getMapper ( ) as $ from => $ to ) { $ mappedArray [ $ to ] = $ array [ $ from ] ; } return $ mappedArray ; }
Attempts to use stored mapper array to map fields from the current model's properties to what is set in the
array.

@param array $array

@return array
Attempts to use stored mapper array to map fields from the current model s properties to what is set in the array .