• Модуль: catalog
  • Путь к файлу: ~/bitrix/modules/catalog/lib/v2/Property/PropertyRepository.php
  • Класс: BitrixCatalogv2PropertyPropertyRepository
  • Вызов: PropertyRepository::getCollectionByParent
public function getCollectionByParent(BaseIblockElementEntity $entity): PropertyCollection
{
	if ($entity->isNew())
	{
		return $this->loadCollection([], $entity);
	}

	$result = $this->getList([
		'filter' => [
			'IBLOCK_ID' => $entity->getIblockId(),
			'ID' => $entity->getId(),
		],
	]);

	$entityFields = $result[$entity->getId()] ?? [];

	return $this->loadCollection($entityFields, $entity);
}