eZ\Publish\Core\Persistence\Legacy\Content\Type\Gateway\DoctrineDatabase::updateGroup PHP Method

updateGroup() public method

Updates a group with data in $group.
public updateGroup ( eZ\Publish\SPI\Persistence\Content\Type\Group\UpdateStruct $group )
$group eZ\Publish\SPI\Persistence\Content\Type\Group\UpdateStruct
    public function updateGroup(GroupUpdateStruct $group)
    {
        $q = $this->dbHandler->createUpdateQuery();
        $q->update($this->dbHandler->quoteColumn('ezcontentclassgroup'))->set($this->dbHandler->quoteColumn('modified'), $q->bindValue($group->modified, null, \PDO::PARAM_INT))->set($this->dbHandler->quoteColumn('modifier_id'), $q->bindValue($group->modifierId, null, \PDO::PARAM_INT))->set($this->dbHandler->quoteColumn('name'), $q->bindValue($group->identifier))->where($q->expr->eq($this->dbHandler->quoteColumn('id'), $q->bindValue($group->id, null, \PDO::PARAM_INT)));
        $q->prepare()->execute();
    }