• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/recycling/contactbinder.php
  • Класс: Bitrix\Crm\Recycling\ContactBinder
  • Вызов: ContactBinder::getBoundEntityIDs
public function getBoundEntityIDs($associatedEntityTypeID, $associatedEntityID)
{
	if($associatedEntityTypeID === \CCrmOwnerType::Company)
	{
		return Crm\Binding\ContactCompanyTable::getCompanyContactIDs($associatedEntityID);
	}

	$entityTypeName = \CCrmOwnerType::ResolveName($associatedEntityTypeID);
	throw new Main\NotSupportedException("Entity '{$entityTypeName}' not supported in current context.");
}