original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Gets a data array with fields and values for parent entity creation
  
  @param array $dataRow
  
  @return array
docstring_tokens: Gets a data array with fields and values for parent entity creation