Метод deleteById

public

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

public function deleteById(int $id): void

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

Описание

Erases the row of the activity. Nothing else goes with it: the rows of the bindings, of the communications and of the files belong to their own writers, and the pipeline of a delete drops them through those before it gets here. THE STATEMENT IS A PLAIN ONE AND NOT A WRITE THROUGH THE ORM, because legacy erases the row with a plain statement of its own (`InnerDelete`, :1574) and the events of the ORM entity of an activity have never fired for a deletion. Going through {@see ActivityTable::delete()} would start firing them, which is a change of behaviour and not a change of style. The method is deliberately absent from {@see ActivityRepositoryInterface}: the one caller is the step erasing the row, and widening the boundary would oblige every test double of it to answer a question nobody asks.

Параметры

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

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

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

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

Исходный код

PHP