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

updateSection() public method

Updates section with $id to have $name and $identifier.
public updateSection ( integer $id, string $name, string $identifier )
$id integer
$name string
$identifier string
    public function updateSection($id, $name, $identifier)
    {
        $query = $this->dbHandler->createUpdateQuery();
        $query->update($this->dbHandler->quoteTable('ezsection'))->set($this->dbHandler->quoteColumn('name'), $query->bindValue($name))->set($this->dbHandler->quoteColumn('identifier'), $query->bindValue($identifier))->where($query->expr->eq($this->dbHandler->quoteColumn('id'), $query->bindValue($id, null, \PDO::PARAM_INT)));
        $query->prepare()->execute();
    }