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

	/** @var IntegrationServiceInternalContainerItem $item */
	foreach($this->getCollection() as $item)
	{
		if($item->getEntity()->hasRelation() == false
			|| $item->getEntity()->getRelation()->getDestinationEntityId() == 0)
		{
			$collection->addItem($item);
		}
	}
	return $collection;
}