src/Daursu/Xero/models/BaseModel.php
public function save($params = array())
	{
		if ( isset($this->attributes[$this->primary_column])) {
			return $this->update($params);
		}
		else {
			return $this->create($params);
		}
	}
public function save($params = array())
	{
		if ( isset($this->attributes[$this->primary_column])) {
			return $this->update($params);
		}
		else {
			return $this->create($params);
		}
	}
public function save ( $ params = array ( ) ) { if ( isset ( $ this -> attributes [ $ this -> primary_column ] ) ) { return $ this -> update ( $ params ) ; } else { return $ this -> create ( $ params ) ; } }
Save an entity. If it doesn't have the primary key set
then it will create it, otherwise it will update it.

@param  array $params
@return boolean
Save an entity . If it doesn t have the primary key set then it will create it otherwise it will update it .