method public

Reference::modifyValueBeforeSave()

Класс: \Bitrix\Main\ORM\Fields\Relations\Reference

Сигнатура

public modifyValueBeforeSave(mixed $value, mixed $data) : mixed

Параметры

$value mixed
$data mixed

Возвращаемое значение

mixed

Как применяется в Reference

Reference::modifyValueBeforeSave() — метод класса \Bitrix\Main\ORM\Fields\Relations\Reference модуля «Главный модуль». Reference: Поле Reference описывает отношение 1-к-1 или 1-ко-многим между двумя сущностями.

Метод объекта: сначала нужен экземпляр Reference.

use Bitrix\Main\ORM\Fields\Relations\Reference;

/** @var Reference $object */
$value = null;
$data = null;
$result = $object->modifyValueBeforeSave($value, $data);
// $result: mixed

Другие методы Reference

modifyValueBeforeSave() есть и у других классов модуля «Главный модуль»: ArrayField, BooleanField, CryptoField, DateField, DatetimeField, DecimalField, EnumField, ExpressionField.

Исходный файл: source/main/lib/orm/fields/relations/reference.php:220

Что будем искать? Например,Продвижение