75 if ($group = GroupTable::getList([
76 'select' => [
'ID',
'DESCRIPTION'],
78 '=OWNER_TYPE' => get_class(
$owner),
84 $groupId = $group[
'ID'];
85 if ($group[
'DESCRIPTION'] != $description)
87 GroupTable::update($groupId, [
'DESCRIPTION' => $description]);
92 $groupId = GroupTable::add([
'fields' => [
93 'OWNER_TYPE' => get_class(
$owner),
96 'DESCRIPTION' => $description
101 return static::getInstance($groupId);