• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/integrity/automaticduplicateindexbuilder.php
  • Класс: Bitrix\Crm\Integrity\AutomaticDuplicateIndexBuilder
  • Вызов: AutomaticDuplicateIndexBuilder::getQueryForMatchHash
protected function getQueryForMatchHash(string $matchHash)
{
	return Entity\AutomaticDuplicateIndexTable::query()
		->where('USER_ID', $this->getUserID())
		->where('ENTITY_TYPE_ID', $this->getEntityTypeID())
		->where('TYPE_ID', $this->getTypeID())
		->where('SCOPE', $this->getScope())
		->where('MATCH_HASH', $matchHash)
		->setLimit(1);
}