- Модуль: crm
- Путь к файлу: ~/bitrix/modules/crm/lib/conversion/entityconverter.php
- Класс: Bitrix\Crm\Conversion\EntityConverter
- Вызов: EntityConverter::attachEntity
protected function attachEntity($dstEntityTypeId, $dstEntityId)
{
Crm\Timeline\Entity\TimelineBindingTable::attach(
$this->getEntityTypeID(),
$this->getEntityID(),
$dstEntityTypeId,
$dstEntityId,
$this->getTimelineEntryTypesToAttach()
);
\CCrmActivity::AttachBinding($this->getEntityTypeID(), $this->getEntityID(), $dstEntityTypeId, $dstEntityId);
if ($dstEntityTypeId === \CCrmOwnerType::Deal)
{
DealChannelBinding::attach($this->getEntityTypeID(), $this->getEntityID(), $dstEntityId);
}
}