connection->getQueryBuilder(); $query->update('talk_attendees') ->set('permissions', $query->createNamedParameter(Attendee::PERMISSIONS_DEFAULT, IQueryBuilder::PARAM_INT)) ->where($query->expr()->eq('participant_type', $query->createNamedParameter(Participant::MODERATOR))) ->orWhere($query->expr()->eq('participant_type', $query->createNamedParameter(Participant::GUEST_MODERATOR))); $fixed = $query->executeStatement(); $output->info('Fixed permissions of ' . $fixed . ' moderators'); } }