public function delete()
    {
        $where = [static::$primary_key => $this->getPrimaryKey()];

        $this->connection->delete(static::$table, $where);
        $this->setStored(false);

        return $this;
    }
public function delete()
    {
        $where = [static::$primary_key => $this->getPrimaryKey()];

        $this->connection->delete(static::$table, $where);
        $this->setStored(false);

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

@return Entity This entity
Delete this entity from the database .