• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/integration/catalog/contractor/agentcontractcontractortable.php
  • Класс: Bitrix\Crm\Integration\Catalog\Contractor\AgentContractContractorTable
  • Вызов: AgentContractContractorTable::unbind
static function unbind(int $entityTypeId, int $entityId): void
{
	$sqlHelper = Application::getConnection()->getSqlHelper();

	Application::getConnection()->query(sprintf(
		'
		DELETE FROM %s
		WHERE
			ENTITY_TYPE_ID = %d
			AND ENTITY_ID = %d
		',
		self::getTableName(),
		$sqlHelper->convertToDbInteger($entityTypeId),
		$sqlHelper->convertToDbInteger($entityId)
	));
}