Метод deleteByActivityId

public

Сигнатура метода

public function deleteByActivityId(int $activityId): void

Возвращает: void

Описание

Removes every row of the activity and reports the removal to the listener. The step of the pipeline that deletes an activity needs it: legacy drops the whole set from inside the deletion of the row (`DeleteBindings($ID, false)`, :2208-2266) and recomputes over it what depends on the set. THE OWNER COLUMNS OF THE ACTIVITY ARE NOT SYNCHRONIZED, and that is no omission. Legacy leaves them alone here, they are a denormalization of a set that no longer exists, and the row holding them is erased right after this. THE REMOVAL IS REPORTED EVEN WHERE THERE WAS NOTHING TO REMOVE, exactly as legacy reports it: the consumers of the change are told on every deletion, and the badges of the activity are recomputed by that call whether or not a binding was there.

Параметры

1
Имя Тип По умолчанию Флаги
$activityId int —
—

Расположение

Исходный файл метода в Bitrix Framework

Путь к исходному файлу Source
~/bitrix/modulescrm/lib/V2/Internal/Repository/Activity/ActivityBindingRepository.php
Расположение метода в файле
Строки 220–231

Исходный код

PHP