original_string: public function delete($model)
      {
          $this->db->connect()
              ->deleteFrom($this->table)
              ->where($this->key . ' = ?')
              ->execute([$model->{$this->key}]);
          $model->{$this->key} = null;
      }
code: public function delete($model)
      {
          $this->db->connect()
              ->deleteFrom($this->table)
              ->where($this->key . ' = ?')
              ->execute([$model->{$this->key}]);
          $model->{$this->key} = null;
      }
code_tokens: public function delete ( $ model ) { $ this -> db -> connect ( ) -> deleteFrom ( $ this -> table ) -> where ( $ this -> key . ' = ?' ) -> execute ( [ $ model -> { $ this -> key } ] ) ; $ model -> { $ this -> key } = null ; }
docstring: Delete entry.
  
  @param mixed $model  Model instance.
docstring_tokens: Delete entry .