src/Core/Model.php
public function save($options = [])
    {
        if (!isset($options['except'])) {
            $options['except'] = [];
        }

        $options['except'] = array_merge($options['except'], $this->readOnly);

        if (!$this->exists) {
            return $this->create($options);
        }

        return $this->update($options);
    }
public function save($options = [])
    {
        if (!isset($options['except'])) {
            $options['except'] = [];
        }

        $options['except'] = array_merge($options['except'], $this->readOnly);

        if (!$this->exists) {
            return $this->create($options);
        }

        return $this->update($options);
    }
public function save ( $ options = [ ] ) { if ( ! isset ( $ options [ 'except' ] ) ) { $ options [ 'except' ] = [ ] ; } $ options [ 'except' ] = array_merge ( $ options [ 'except' ] , $ this -> readOnly ) ; if ( ! $ this -> exists ) { return $ this -> create ( $ options ) ; } return $ this -> update ( $ options ) ; }
Creates or updates model
@param array $options
@return mixed
@throws InvalidRequestException
@throws ResponseException
Creates or updates model