original_string: public function delete()
      {
          $where = [static::$primary_key => $this->getPrimaryKey()];
  
          $this->connection->delete(static::$table, $where);
          $this->setStored(false);
  
          return $this;
      }
code: public function delete()
      {
          $where = [static::$primary_key => $this->getPrimaryKey()];
  
          $this->connection->delete(static::$table, $where);
          $this->setStored(false);
  
          return $this;
      }
code_tokens: public function delete ( ) { $ where = [ static :: $ primary_key => $ this -> getPrimaryKey ( ) ] ; $ this -> connection -> delete ( static :: $ table , $ where ) ; $ this -> setStored ( false ) ; return $ this ; }
docstring: Delete this entity from the database.
  
  @return Entity This entity
docstring_tokens: Delete this entity from the database .