Для вывода использую такой код
$elements = ElementReviewsTable::getList([
'select' => ['ID', 'NAME', 'PREVIEW_TEXT', 'DETAIL_TEXT', 'RATING', 'CITY_' => 'CITY', 'SECTION_' => 'SECTION'],
'filter' => ['=ACTIVE' => 'Y'],
'runtime' => array(
'SECTION' => array(
'data_type' => '\Bitrix\Iblock\SectionTable',
'reference' => array(
'=this.CITY_VALUE' => 'ref.ID'
)
)
),
'limit' => $limit,
'offset' => $offset,
])->fetchAll();
SECTION получает пустые данные, CITY отдает сериализованную строку, нужными мне параметрами, как мне получить данные раздела через один запрос используя эту сериализованную строку?
Вот пример что получаю
[1] => Array
(
[ID] => 19
[NAME] => Отзыв 2
[PREVIEW_TEXT] =>
[DETAIL_TEXT] =>
[IBLOCK_ELEMENTS_ELEMENT_REVIEWS_RATING_ID] => 55
[IBLOCK_ELEMENTS_ELEMENT_REVIEWS_RATING_IBLOCK_ELEMENT_ID] => 19
[IBLOCK_ELEMENTS_ELEMENT_REVIEWS_RATING_IBLOCK_PROPERTY_ID] => 111
[IBLOCK_ELEMENTS_ELEMENT_REVIEWS_RATING_VALUE] => 12.0000
[IBLOCK_ELEMENTS_ELEMENT_REVIEWS_RATING_IBLOCK_GENERIC_VALUE] => 12
[CITY_ID] => 59
[CITY_IBLOCK_ELEMENT_ID] => 19
[CITY_IBLOCK_PROPERTY_ID] => 112
[CITY_VALUE] => 0.0000
[CITY_IBLOCK_GENERIC_VALUE] => a:2:{s:6:"IBLOCK";s:1:"1";s:7:"SECTION";s:2:"17";}
[SECTION_ID] =>
[SECTION_TIMESTAMP_X] =>
[SECTION_MODIFIED_BY] =>
[SECTION_DATE_CREATE] =>
[SECTION_CREATED_BY] =>
[SECTION_IBLOCK_ID] =>
[SECTION_IBLOCK_SECTION_ID] =>
[SECTION_ACTIVE] =>
[SECTION_GLOBAL_ACTIVE] =>
[SECTION_SORT] =>
[SECTION_NAME] =>
[SECTION_PICTURE] =>
[SECTION_LEFT_MARGIN] =>
[SECTION_RIGHT_MARGIN] =>
[SECTION_DEPTH_LEVEL] =>
[SECTION_DESCRIPTION] =>
[SECTION_DESCRIPTION_TYPE] =>
[SECTION_SEARCHABLE_CONTENT] =>
[SECTION_CODE] =>
[SECTION_XML_ID] =>
[SECTION_TMP_ID] =>
[SECTION_DETAIL_PICTURE] =>
[SECTION_SOCNET_GROUP_ID] =>
)