Метод saveOwner
Сигнатура метода
protected function saveOwner(LegacyItem $legacyItem, AbstractItemCommand $command, EntityType $ownerType, int $ownerId): Result
Возвращает:
Result
Описание
Runs the update operation of the owner over the changes a primitive has left on the legacy Item, and drops the cached snapshot of that Item once it succeeded. An Item with nothing changed produces no effects - an existing property of the operation, kept rather than worked around: no write is forced to make an empty change observable.
Параметры
4| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$legacyItem
|
LegacyItem
|
—
|
—
|
$command
|
AbstractItemCommand
|
—
|
—
|
$ownerType
|
EntityType
|
—
|
—
|
$ownerId
|
int
|
—
|
—
|
Расположение
Исходный файл метода в Bitrix Framework
Путь к исходному файлу
Source
~/bitrix/modulescrm/lib/V2/Internal/Service/ProductRow/Handler/AbstractProductRowCommandHandler.php
Расположение метода в файле
Строки
89–111