original_string: public function delete()
      {
          $query = $this->createQuery();
          $query->setAction('delete');
          $query->where($query->buildAndSet([$this->getTableKey(), '=', $this->id]));
          $result = $this->database->query($query);
  
          return $result ? true : false;
      }
code: public function delete()
      {
          $query = $this->createQuery();
          $query->setAction('delete');
          $query->where($query->buildAndSet([$this->getTableKey(), '=', $this->id]));
          $result = $this->database->query($query);
  
          return $result ? true : false;
      }
code_tokens: public function delete ( ) { $ query = $ this -> createQuery ( ) ; $ query -> setAction ( 'delete' ) ; $ query -> where ( $ query -> buildAndSet ( [ $ this -> getTableKey ( ) , '=' , $ this -> id ] ) ) ; $ result = $ this -> database -> query ( $ query ) ; return $ result ? true : false ; }
docstring: Deletes the current model from the database.
  
  @return bool
docstring_tokens: Deletes the current model from the database .