• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/exchange/integration/service/batchable/base.php
  • Класс: BitrixSaleExchangeIntegrationServiceBatchableBase
  • Вызов: Base::proxyAdds
public function proxyAdds(array $list);

protected function relationLoad()
{
	$collection = $this->getCollection();

	$relations = static::relationEntityList([
			'SRC_ENTITY_ID' => $collection->getIndexes(),
			'SRC_ENTITY_TYPE_ID' => $this->getSrcEntityTypeId(),
			'DST_ENTITY_TYPE_ID' => $this->getDstEntityTypeId()]
	);
	if(count($relations)>0)
	{
		/** @var IntegrationRelationRelation $relation */
		foreach ($relations as $relation)
		{
			$item = $collection->getItemByIndex($relation->getSourceEntityId());
			$item->getEntity()
				->setRelation($relation);
		}
	}
	return $this;
}