original_string: public function save($model)
      {
          if (isset($model->{$this->key})) {
              return $this->update($model);
          }
          
          return $this->create($model);
      }
code: public function save($model)
      {
          if (isset($model->{$this->key})) {
              return $this->update($model);
          }
          
          return $this->create($model);
      }
code_tokens: public function save ( $ model ) { if ( isset ( $ model -> { $ this -> key } ) ) { return $ this -> update ( $ model ) ; } return $ this -> create ( $ model ) ; }
docstring: Save entry by inserting if ID is missing and updating if ID exists.
  
  @param mixed $model  Model instance.
  
  @return void
docstring_tokens: Save entry by inserting if ID is missing and updating if ID exists .