public function update($params = null) {
    if($params) { $this->_params = array_merge($this->_params, $params); }
		
		if(!$this->id || !$this->href) {
			throw new BadMethodCallException("This object has not yet been created, and therefore can not be updated.  Try the ->create() or one of the ->findBy* methods first");
		}

    $this->_params['id'] = $this->_castIdWithClosure();
		
		$result = $this->executeCommand($this->_path_for_regex . "_update", $this->_params);
	}
public function update($params = null) {
    if($params) { $this->_params = array_merge($this->_params, $params); }
		
		if(!$this->id || !$this->href) {
			throw new BadMethodCallException("This object has not yet been created, and therefore can not be updated.  Try the ->create() or one of the ->findBy* methods first");
		}

    $this->_params['id'] = $this->_castIdWithClosure();
		
		$result = $this->executeCommand($this->_path_for_regex . "_update", $this->_params);
	}
public function update ( $ params = null ) { if ( $ params ) { $ this -> _params = array_merge ( $ this -> _params , $ params ) ; } if ( ! $ this -> id || ! $ this -> href ) { throw new BadMethodCallException ( "This object has not yet been created, and therefore can not be updated.  Try the ->create() or one of the ->findBy* methods first" ) ; } $ this -> _params [ 'id' ] = $ this -> _castIdWithClosure ( ) ; $ result = $ this -> executeCommand ( $ this -> _path_for_regex . "_update" , $ this -> _params ) ; }
Calls the "Update" or PUT method on the API resource represented by the model.

@throws \BadMethodCallException|\InvalidArgumentException If the id or href of the resource in the API is unknown, or if an invalid parameter was supplied.
@param array $params An array of paramters to override in the request.  This will be merged with all existing parameters/properties of this object.
Calls the Update or PUT method on the API resource represented by the model .