original_string: public function save($params = array())
  	{
  		if ( isset($this->attributes[$this->primary_column])) {
  			return $this->update($params);
  		}
  		else {
  			return $this->create($params);
  		}
  	}
code: public function save($params = array())
  	{
  		if ( isset($this->attributes[$this->primary_column])) {
  			return $this->update($params);
  		}
  		else {
  			return $this->create($params);
  		}
  	}
code_tokens: public function save ( $ params = array ( ) ) { if ( isset ( $ this -> attributes [ $ this -> primary_column ] ) ) { return $ this -> update ( $ params ) ; } else { return $ this -> create ( $ params ) ; } }
docstring: 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
docstring_tokens: Save an entity . If it doesn t have the primary key set then it will create it otherwise it will update it .