Метод syncDepartmentsToAncestors
Расположение
Исходный файл метода в Bitrix Framework
Путь к исходному файлу
строки
130–147
~/bitrix/modulesim/lib/V2/Integration/HumanResources/Sync/SyncService.php
Исходный код
Сигнатура метода
private static function syncDepartmentsToAncestors(int $chatId): void
Возвращает:
void
Описание
Maintains the tree invariant: a department/team linked to a chat is mirrored onto its ancestor chats. This is the single choke-point — every link path (attach cascade, member-edit, Structure::link, create) goes through NodeRelationRepository::create() and raises this OnRelationAdded(CHAT) event.
Параметры
1| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$chatId
|
int
|
-
|
-
|