Метод recreateField
Сигнатура метода
private function recreateField(int $storageTypeId, int $existingFieldId, StorageField $storageField): void
Возвращает:
void
Описание
The type of a storage field is immutable, so a column that changed its type gets its field created anew: the data of a data view is derived and is rewritten by the materialization that follows the save. Value writers cache the field map of the storage, so the dropped field must not stay in it.
Параметры
3| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$storageTypeId
|
int
|
—
|
—
|
$existingFieldId
|
int
|
—
|
—
|
$storageField
|
StorageField
|
—
|
—
|
Расположение
Исходный файл метода в Bitrix Framework
Путь к исходному файлу
Source
~/bitrix/modulesbizproc/lib/Public/Command/DataView/SaveDataViewCommandHandler.php
Расположение метода в файле
Строки
351–357