Метод syncOwnerColumns
Сигнатура метода
public function syncOwnerColumns(int $activityId, array $bindings, ?StorageFieldTransit $transit = null): void
Возвращает:
void
Описание
Brings the owner columns of the row in step with the given set of bindings, by the same rule the write path applies on an add and on an update. Those two columns and nothing else: no audit stamp is bumped, because whoever changed the bindings has already written what it had to write. The owner of an activity is a denormalization of its bindings that the permission SQL is built on, so it cannot be left behind when the set changes. The rule of deriving it lives here, next to the write path; the repository of the bindings delegates to this method instead of holding a second copy of it. AN OWNER THE OPERATION NAMED IS NOT OVERWRITTEN. The rule is the one of the write path in full - the pair of owner columns of the transit wins and the set decides only where the operation named none - so a write of the bindings can no longer undo what the same operation said about the owner. Handing no transit over means "nobody named one", which is what a writer outside a pipeline says.
Параметры
3| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$activityId
|
int
|
—
|
—
|
$bindings
|
array
|
—
|
—
|
$transit
|
?StorageFieldTransit
|
null
|
—
|
Расположение
Исходный файл метода в Bitrix Framework
~/bitrix/modulescrm/lib/V2/Internal/Repository/Activity/ActivityRepositoryInterface.php