method
public
IntegerField::configureUnique()
Сигнатура
public configureUnique([bool $value = true ]) : $this
Параметры
$value
bool
= true
Возвращаемое значение
$this
Как применяется в IntegerField
IntegerField::configureUnique() — метод класса \Bitrix\Main\ORM\Fields\IntegerField модуля «Главный модуль». IntegerField: Класс поля сущности для типа данных integer.
Метод объекта: сначала нужен экземпляр IntegerField.
use Bitrix\Main\ORM\Fields\IntegerField;
/** @var IntegerField $object */
$result = $object->configureUnique();
// $result: $thisДругие методы IntegerField
addFetchDataModifier()addSaveDataModifier()addValidator()cast()Строго приводит значение к типу поля.configureAutocomplete()configureBinary()configureColumnName()configureDefaultValue()configureFulltext()configureNullable()configurePrimary()configurePrivate()
configureUnique() есть и у других классов модуля «Главный модуль»: ArrayField, BooleanField, CryptoField, DateField, DatetimeField, DecimalField, EnumField, FloatField.
Исходный файл: source/main/lib/orm/fields/integerfield.php:115

