$objListOfDoctors = \Bitrix\Iblock\Elements\ElementDoctorsAPITable::getList([
'select' => [
'ID',
'NAME',
'SERVICESLIST.ELEMENT',
'PROPERTY_TBL',
],
'filter' => ['ID' => $arParams['LIST_OF_DOCTOR'], 'ACTIVE' => 'Y'],
'order' => ['DATE_CREATE' => 'ASC'],
'runtime' => [
(new \Bitrix\Main\Entity\ReferenceField(
'PROPERTY_TBL',
\Bitrix\Iblock\PropertyTable::class,
\Bitrix\Main\ORM\Query\Join::on('this.SERVICESLIST.IBLOCK_PROPERTY_ID', 'ref.ID')
,
))->configureJoinType('inner'),
],
])->fetchCollection();
foreach ($objListOfDoctors as $doctor) {
var_dump($doctor->getId());
var_dump($doctor->get('PROPERTY_TBL')->get('PROPERTY_TYPE'));
var_dump($doctor->get('PROPERTY_TBL')->getPropertyType());
}
$prop = \Bitrix\Iblock\PropertyTable::getList([
'select' => ['ID', 'PROPERTY_TYPE'],
'filter' => \Bitrix\Main\ORM\Query\Query::filter()
->where('CODE', 'GETSERVICESLIST')
])->fetchObject();
var_dump($prop->getId());
var_dump($prop->getPropertyType());
Разделы каталога /catalog/#SECTION_CODE#/
Товар /product/#ELEMENT_CODE#/