Метод wasCalledWithNoField
Сигнатура метода
public function wasCalledWithNoField(): bool
Возвращает:
bool
Описание
Whether the caller named no field at all - an empty field array, which legacy refuses both an add and an update over at the top of its check of the fields (crm_activity.php:2227-2233, `Fields is not specified.`). The one reader is that same check ({@see Pipeline\Step\Shared\ValidateAndNormalize}). IT IS HERE FOR THE SAME REASON THE INCORRECT MOMENTS ARE: the fact is lost below. An empty field array and an array of keys that carry no value of the model both produce a model with nothing assigned, and legacy tells the two apart - it refuses the first with one message and lets the second reach the per-field checks. Which of them it was is a property of the legacy input, so the projection states it and the one step that refuses decides what follows. A DELETE AND A COMPLETION ANSWER TRUE HERE and nothing comes of it: their entry points hand over no field array at all, and neither pipeline has a check of the fields to read this.
Расположение
Исходный файл метода в Bitrix Framework
~/bitrix/modulescrm/lib/V2/Internal/Service/Activity/ActivityOperationContext.php