eZ\Publish\Core\Persistence\Legacy\User\Role\Gateway\DoctrineDatabase::updateRole PHP Method

updateRole() public method

Will not throw anything if location id is invalid.
public updateRole ( eZ\Publish\SPI\Persistence\User\RoleUpdateStruct $role ) : array
$role eZ\Publish\SPI\Persistence\User\RoleUpdateStruct
return array
    public function updateRole(RoleUpdateStruct $role)
    {
        $query = $this->handler->createUpdateQuery();
        $query->update($this->handler->quoteTable('ezrole'))->set($this->handler->quoteColumn('name'), $query->bindValue($role->identifier))->where($query->expr->eq($this->handler->quoteColumn('id'), $query->bindValue($role->id, null, \PDO::PARAM_INT)));
        $statement = $query->prepare();
        $statement->execute();
        // Commented due to EZP-24698: Role update leads to NotFoundException
        // Should be fixed with PDO::MYSQL_ATTR_FOUND_ROWS instead
        /*if ($statement->rowCount() < 1) {
              throw new NotFoundException('role', $role->id);
          }*/
    }