StoreDocumentContractorTable::deleteByDocumentId

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. StoreDocumentContractorTable
  4. deleteByDocumentId
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/integration/catalog/contractor/storedocumentcontractortable.php
  • Класс: Bitrix\Crm\Integration\Catalog\Contractor\StoreDocumentContractorTable
  • Вызов: StoreDocumentContractorTable::deleteByDocumentId
static function deleteByDocumentId(int $documentId): void
{
	$sqlHelper = Application::getConnection()->getSqlHelper();

	Application::getConnection()->query(sprintf(
		'
		DELETE FROM b_crm_store_document_contractor
		WHERE
		    DOCUMENT_ID = %d
		',
		$sqlHelper->convertToDbInteger($documentId)
	));
}

Добавить комментарий