Метод mergeThreadInto
Сигнатура метода
public function mergeThreadInto(int $activityId, int $threadId): void
Возвращает:
void
Описание
Moves every activity of the chain the given activity heads into another chain - `THREAD_ID = $threadId` for every row whose `THREAD_ID` is the id of that activity. An activity that had no parent is the head of a chain of its own, and everything answering to it follows it when it is attached to a parent: the step of an update that resolved the new chain asks for this right after the row itself has been written (crm_activity.php:673-679), and the row of the activity is no longer part of the set - its own column has just been written with the new chain. That one column and nothing else is written, for the same reason as above: whoever attached the activity has already written what it had to write, and legacy moves the chain with a statement of its own that touches no audit stamp. A chain of zero is a value stored rows of legacy really have, so it is accepted as the target.
Параметры
2| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$activityId
|
int
|
—
|
—
|
$threadId
|
int
|
—
|
—
|
Расположение
Исходный файл метода в Bitrix Framework
~/bitrix/modulescrm/lib/V2/Internal/Repository/Activity/ActivityRepositoryInterface.php