Код |
---|
require_once($_SERVER['DOCUMENT_ROOT'] . "/bitrix/modules/main/include/prolog_before.php"); use Bitrix\Main\Loader; Loader::includeModule("highloadblock"); use Bitrix\Highloadblock as HL; $id = 1; $hlbl = 6; $fid = 65; $hlblock = HL\HighloadBlockTable::getById($hlbl)->fetch(); $entity = HL\HighloadBlockTable::compileEntity($hlblock); $entityCode = $entity->getDataClass(); $data["UF_DOC"] = $fid; $data["UF_TXT"] = $fid; $result = $entityCode::update($id, $data); |
UF_DOC - тип "файл" не обновляется
UF_TXT - тип "строка" обновляется
что не так делаю?