protected function getData($dataRow)
    {
        $data = [];
        $relateTable = $this->getParentTableName();
        $regexp = "/{$relateTable}_(?P<name>.+)/i";
        foreach ($dataRow as $field => $value) {
            if (preg_match($regexp, $field, $matched)) {
                $data[$matched['name']] = $value;
            }
        }
        return $data;
    }
protected function getData($dataRow)
    {
        $data = [];
        $relateTable = $this->getParentTableName();
        $regexp = "/{$relateTable}_(?P<name>.+)/i";
        foreach ($dataRow as $field => $value) {
            if (preg_match($regexp, $field, $matched)) {
                $data[$matched['name']] = $value;
            }
        }
        return $data;
    }
protected function getData ( $ dataRow ) { $ data = [ ] ; $ relateTable = $ this -> getParentTableName ( ) ; $ regexp = "/{$relateTable}_(?P<name>.+)/i" ; foreach ( $ dataRow as $ field => $ value ) { if ( preg_match ( $ regexp , $ field , $ matched ) ) { $ data [ $ matched [ 'name' ] ] = $ value ; } } return $ data ; }
Gets a data array with fields and values for parent entity creation

@param array $dataRow

@return array
Gets a data array with fields and values for parent entity creation