UserGroupMemberRepositoryInterface
interface UserGroupMemberRepositoryInterface (View source)
Persistence for user group membership (user_group_members).
Methods
array
findByGroupId(int $groupId)
Find all members of a group
array
findByUserId(int $userId)
Find all groups a user belongs to
add(int $groupId, int $userId)
Add a user to a group
bool
remove(int $groupId, int $userId)
Remove a user from a group
bool
exists(int $groupId, int $userId)
Check if a user is a member of a group
Details
array
findByGroupId(int $groupId)
Find all members of a group
array
findByUserId(int $userId)
Find all groups a user belongs to
UserGroupMember
add(int $groupId, int $userId)
Add a user to a group
bool
remove(int $groupId, int $userId)
Remove a user from a group
bool
exists(int $groupId, int $userId)
Check if a user is a member of a group