original_string: public function update(Model $model)
      {
          $data['models'] = [];
          $data['models'][] = $this->createModelData($model);
          $data['action'] = 'merge';
  
          $modelResult = $this->getRequest()->request(
              'PATCH',
              $this->getRequestUrl('models'),
              $data
          );
  
          return $this->getModelsFromResult($modelResult);
      }
code: public function update(Model $model)
      {
          $data['models'] = [];
          $data['models'][] = $this->createModelData($model);
          $data['action'] = 'merge';
  
          $modelResult = $this->getRequest()->request(
              'PATCH',
              $this->getRequestUrl('models'),
              $data
          );
  
          return $this->getModelsFromResult($modelResult);
      }
code_tokens: public function update ( Model $ model ) { $ data [ 'models' ] = [ ] ; $ data [ 'models' ] [ ] = $ this -> createModelData ( $ model ) ; $ data [ 'action' ] = 'merge' ; $ modelResult = $ this -> getRequest ( ) -> request ( 'PATCH' , $ this -> getRequestUrl ( 'models' ) , $ data ) ; return $ this -> getModelsFromResult ( $ modelResult ) ; }
docstring: Update the model
  
  @param Model $model
  
  @return Model[]
docstring_tokens: Update the model