38 $employees = $this->memberService->getPagedEmployees(
40 $relation->withChildNodes,
44 if (empty($employees))
49 $users = array_map(
static fn(NodeMember $employee):
array => [
'user', $employee->entityId], $employees);
50 $convertedMembers = Converter::convertToFinderCodes($users);
75 $employees = $this->memberService->getPagedEmployees(
77 $relation->withChildNodes,
81 $users = array_map(
static fn(NodeMember $employee):
int => $employee->entityId, $employees);
116 $filteredUsers = $this->relationService->getUsersNotInRelation(
117 RelationEntityType::COLLAB,
122 $groupUsers = ServiceLocator::getInstance()
123 ->get(UserToGroupRepository::class)
124 ->getForRelation($relation, $filteredUsers)
127 $filteredUsers = array_column($groupUsers,
'USER_ID');
129 if (empty($filteredUsers))
135 $convertedMembers = Converter::convertToFinderCodes($users);
138 ->setMembers($convertedMembers)
139 ->setInitiatorId($relation->createdBy)
140 ->setGroupId($relation->entityId)
143 return ServiceLocator::getInstance()->get(
'socialnetwork.collab.member.facade')->delete($command);