AgentContractContactCompanyBinding::isDocumentBoundToEntity

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. AgentContractContactCompanyBinding
  4. isDocumentBoundToEntity
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/integration/catalog/contractor/agentcontractcontactcompanybinding.php
  • Класс: Bitrix\Crm\Integration\Catalog\Contractor\AgentContractContactCompanyBinding
  • Вызов: AgentContractContactCompanyBinding::isDocumentBoundToEntity
public function isDocumentBoundToEntity(int $documentId, int $entityId): bool
{
	$item = AgentContractContractorTable::query()
		->where('CONTRACT_ID', $documentId)
		->where('ENTITY_TYPE_ID', $this->entityTypeId)
		->where('ENTITY_ID', $this->$entityId)
		->exec()
		->fetch()
	;

	return (bool)$item;
}

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