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);
    }
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);
    }
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 ) ; }
Update the model

@param Model $model

@return Model[]
Update the model