Create function requires $group_relationship->save()

Created on 5 September 2024, 4 months ago

Hi, Thanks for creating the module + readme.

After a while of trying to add a request programmatically...

$request_manager = \Drupal::service('grequest.membership_request_manager');
$request_manager->create($group, $user);

I discovered groups weren't being created and found that the create function doesn't actually save the group_relationship, it's just creates it ready to save.

I wanted to suggest adding "$group_relationship->save()" to the bottom of the function. But if that doesn't work for the way it's been implemented, it would be nice to add that to the readme.

Thank you.

Jeremy.

📌 Task
Status

Active

Version

3.2

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024