• Модуль: catalog
  • Путь к файлу: ~/bitrix/modules/catalog/lib/v2/PropertyFeature/PropertyFeatureRepository.php
  • Класс: BitrixCatalogv2PropertyFeaturePropertyFeatureRepository
  • Вызов: PropertyFeatureRepository::getCollectionByParent
public function getCollectionByParent(Property $entity): PropertyFeatureCollection
{
	$collection = $this->factory->createCollection();

	$featureSettings = $this->getEntitiesBy([
		'filter' => ['=PROPERTY_ID' => $entity->getId()],
	]);

	foreach ($featureSettings as $settings)
	{
		$feature = $this->createEntity();
		$feature->setSettings($settings);
		$collection->add($feature);
	}

	return $collection;
}