Метод updateAssociatedEntity

public

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

public function updateAssociatedEntity(int $associatedEntityId, Activity $activity, StorageFieldTransit $transit, ActivityChangeSet $changes, ActivityOperationContext $context): void

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

Описание

Carries a write of the activity over to its projection. TOLD WHAT THE ACTIVITY NOW IS, AND WHAT CHANGED BESIDE IT. Legacy hands over the row it re-read after the write (crm_activity.php:1018) and the providers that react decide by the WHOLE of it: the one of tasks compares the title, the description, both ends of the interval and the person responsible of the activity with the task it keeps, and a value the operation did not touch is a value it must still see - handed only what changed, it refuses an activity whose responsible was not part of the write and never gets to the rest. So the state comes first, as the state the run left: the typed model of the re-read row and the storage columns beside it, which is where the row of the other subsystem and the owner of the activity live. The set of changes travels along because deciding by both sides is legitimate and a native provider has no other way to ask "what moved".

Параметры

5
Имя Тип По умолчанию Флаги
$associatedEntityId int —
—
$activity Activity —
—
$transit StorageFieldTransit —
—
$changes ActivityChangeSet —
—
$context ActivityOperationContext —
—

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

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

Путь к исходному файлу Source
~/bitrix/modulescrm/lib/V2/Internal/Service/Activity/Provider/Capability/AssociatedEntityCapabilityInterface.php
Расположение метода в файле
Строки 65–71

Исходный код

PHP