public function create(Model $model)
    {
        $data['model'] = $this->createModelData($model);

        $modelResult = $this->getRequest()->request(
            'POST',
            $this->getRequestUrl('models'),
            $data
        );

        return $this->getModelFromResult($modelResult);
    }
public function create(Model $model)
    {
        $data['model'] = $this->createModelData($model);

        $modelResult = $this->getRequest()->request(
            'POST',
            $this->getRequestUrl('models'),
            $data
        );

        return $this->getModelFromResult($modelResult);
    }
public function create ( Model $ model ) { $ data [ 'model' ] = $ this -> createModelData ( $ model ) ; $ modelResult = $ this -> getRequest ( ) -> request ( 'POST' , $ this -> getRequestUrl ( 'models' ) , $ data ) ; return $ this -> getModelFromResult ( $ modelResult ) ; }
Create new Model

@param Model $model

@return Model

@throws \Exception
Create new Model