• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/exchange/entity/entityimport.php
  • Класс: BitrixSaleExchangeEntityEntityImport
  • Вызов: EntityImport::setCollisions
public function setCollisions($tipeId, SaleInternalsEntity $entity, $message=null)
    {
    	if(ExchangeEntityCollisionType::getErrorGroup($tipeId) == ExchangeEntityCollisionType::GROUP_E_ERROR)
	{
		$this->collisionErrors = true;
	}
	elseif(ExchangeEntityCollisionType::getErrorGroup($tipeId) == ExchangeEntityCollisionType::GROUP_E_WARNING)
	{
		$this->collisionWarnings = true;
	}

    	$collision = $this->getCurrentCollision($this->getOwnerTypeId());
        $collision->addItem($this->getOwnerTypeId(), $tipeId, $entity, $message);

        $this->collisions[] = $collision;
    }