• Модуль: im
  • Путь к файлу: ~/bitrix/modules/im/lib/call/call.php
  • Класс: BitrixImCallCall
  • Вызов: Call::setAssociatedEntity
public function setAssociatedEntity($entityType, $entityId)
{
	$entity = EntityFactory::createEntity($this, $entityType, $entityId);

	if(!$entity)
	{
		throw new ArgumentException("Unknown entity " . $entityType . "; " . $entityId);
	}

	$this->associatedEntity = $entity;
	$this->entityType = $entityType;
	$this->entityId = $entityId;
	$this->save();

	$this->getSignaling()->sendAssociatedEntityReplaced($this->getCurrentUserId());
}