method public

Reference::setParameter()

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

Сигнатура

public setParameter(mixed $name, mixed $value) : mixed

Параметры

$name mixed
$value mixed

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

mixed

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

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

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

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

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

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

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

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

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