original_string: public function apiMerge()
      {
          DB::beginTransaction();
  
          try {
              $record = $this->__apiMerge();
          } catch (\Exception $e) {
              DB::rollback();
  
              return HCLog::error('CORE-0007' . $e->getCode(), $e->getMessage());
          }
  
          DB::commit();
  
          return $record;
      }
code: public function apiMerge()
      {
          DB::beginTransaction();
  
          try {
              $record = $this->__apiMerge();
          } catch (\Exception $e) {
              DB::rollback();
  
              return HCLog::error('CORE-0007' . $e->getCode(), $e->getMessage());
          }
  
          DB::commit();
  
          return $record;
      }
code_tokens: public function apiMerge ( ) { DB :: beginTransaction ( ) ; try { $ record = $ this -> __apiMerge ( ) ; } catch ( \ Exception $ e ) { DB :: rollback ( ) ; return HCLog :: error ( 'CORE-0007' . $ e -> getCode ( ) , $ e -> getMessage ( ) ) ; } DB :: commit ( ) ; return $ record ; }
docstring: Function will can be used to merge multiple records into one
  
  @return mixed
docstring_tokens: Function will can be used to merge multiple records into one