Account created on 2 May 2017, about 7 years ago
#

Recent comments

Make sure you are sym linking to vendor/simplesamlphp/simplesamlphp/public instead of vendor/simplesamlphp/simplesamlphp

Hey,
Is there anything else than adding monolor.services.yml to container-yamls array in settings.php?

I was able to achieve this by following

$group_content = $membership->getGroupContent();

$existing_group_roles = $group_content->get('group_roles')->getValue();

foreach ($selected_roles as $selected_role) {
$existing_group_roles[] = ['target_id' => $selected_role];
}

$group_content->get('group_roles')->setValue($existing_group_roles);

// Save updated entity
$group_content->save();

Production build 0.69.0 2024