public function deleteRow(int $id) : void
    {
        $this->crudEnabled();

        // Generate the values
        $table_name = static::$table_name;
        $id_column = static::$id_column;

        $sql = "DELETE FROM {$table_name} WHERE {$id_column} = :key";
        $this->dbc->query($sql, ['params' => [':key' => $id]]);
    }
public function deleteRow(int $id) : void
    {
        $this->crudEnabled();

        // Generate the values
        $table_name = static::$table_name;
        $id_column = static::$id_column;

        $sql = "DELETE FROM {$table_name} WHERE {$id_column} = :key";
        $this->dbc->query($sql, ['params' => [':key' => $id]]);
    }
public function deleteRow ( int $ id ) : void { $ this -> crudEnabled ( ) ; // Generate the values $ table_name = static :: $ table_name ; $ id_column = static :: $ id_column ; $ sql = "DELETE FROM {$table_name} WHERE {$id_column} = :key" ; $ this -> dbc -> query ( $ sql , [ 'params' => [ ':key' => $ id ] ] ) ; }
Delete the row specified by the passed identifier. If the necessary crud fields have not been identified in the
child class, this function will throw an exception.

@param int $id
@throws \Exception
Delete the row specified by the passed identifier . If the necessary crud fields have not been identified in the child class this function will throw an exception .