• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/counter/entitycountableactivitytable.php
  • Класс: Bitrix\Crm\Counter\EntityCountableActivityTable
  • Вызов: EntityCountableActivityTable::rebind
static function rebind(ItemIdentifier $identifierFrom, ItemIdentifier $identifierTo): void
{
	$sql = 'update ' . self::getTableName()
		. ' set ENTITY_TYPE_ID='. $identifierTo->getEntityTypeId() . ', ENTITY_ID='. $identifierTo->getEntityId()
		. ' where ENTITY_TYPE_ID='. $identifierFrom->getEntityTypeId()
		. ' and ENTITY_ID=' . $identifierFrom->getEntityId()
	;
	Application::getConnection()->query($sql);
	self::cleanCache();
}