eZ\Publish\Core\Persistence\Legacy\Content\Section\Gateway\DoctrineDatabase::deleteSection PHP Method

deleteSection() public method

Deletes the Section with $id.
public deleteSection ( integer $id )
$id integer
    public function deleteSection($id)
    {
        $query = $this->dbHandler->createDeleteQuery();
        $query->deleteFrom($this->dbHandler->quoteTable('ezsection'))->where($query->expr->eq($this->dbHandler->quoteColumn('id'), $query->bindValue($id, null, \PDO::PARAM_INT)));
        $query->prepare()->execute();
    }