public function delete(): self
    {
        $id = $this->id;

        if (!empty($id)) {
            $this->table->delete()
                ->where('id = ', $id)
                ->run();

            $this->values['id'] = null;
        }

        return $this;
    }
public function delete(): self
    {
        $id = $this->id;

        if (!empty($id)) {
            $this->table->delete()
                ->where('id = ', $id)
                ->run();

            $this->values['id'] = null;
        }

        return $this;
    }
public function delete ( ) : self { $ id = $ this -> id ; if ( ! empty ( $ id ) ) { $ this -> table -> delete ( ) -> where ( 'id = ' , $ id ) -> run ( ) ; $ this -> values [ 'id' ] = null ; } return $ this ; }
Delete the row in the database
Delete the row in the database