Метод resolveKnownParentColumn
Сигнатура метода
private static function resolveKnownParentColumn(string $parentFieldName, array $parentTypes, string $param): string
Возвращает:
string
Описание
Validates a raw `PARENT_ID_<typeId>` field and returns its canonical ORM column name. Rejects a type this entity has no parent relation to, and rejects a malformed suffix whose `(int)` cast happens to hit a valid type (e.g. `PARENT_ID_2FOO`, `PARENT_ID_02`): the input must equal the canonical form, so a mangled name yields a contractual {@see ArgumentException} instead of leaking to the ORM as an unregistered column.
Параметры
3| Имя | Тип | По умолчанию | Флаги |
|---|---|---|---|
$parentFieldName
|
string
|
—
|
—
|
$parentTypes
|
array
|
—
|
—
|
$param
|
string
|
—
|
—
|
Расположение
Исходный файл метода в Bitrix Framework
Путь к исходному файлу
Source
~/bitrix/modulescrm/lib/V2/Public/Provider/Item/AbstractItemProvider.php
Расположение метода в файле
Строки
1400–1410