public function prepareDataForSave($entityTypeID, array &$fields)
 {
     $dstUserFields = DealConversionMapper::getUserFields($entityTypeID);
     foreach ($dstUserFields as $dstName => $dstField) {
         if ($dstField['USER_TYPE_ID'] === 'file') {
             $this->prepareFileUserFieldForSave($dstName, $dstField, $fields);
         }
     }
 }
 protected static function prepareMap($entityTypeID)
 {
     if (isset(self::$maps[$entityTypeID])) {
         return self::$maps[$entityTypeID];
     }
     $map = EntityConversionMap::load(\CCrmOwnerType::Deal, $entityTypeID);
     if ($map === null) {
         $map = DealConversionMapper::createMap($entityTypeID);
         $map->save();
     } elseif ($map->isOutOfDate()) {
         DealConversionMapper::updateMap($map);
         $map->save();
     }
     return self::$maps[$entityTypeID] = $map;
 }