CAllCrmContact::Rebind

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. CAllCrmContact
  4. Rebind
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/classes/general/crm_contact.php
  • Класс: \CAllCrmContact
  • Вызов: CAllCrmContact::Rebind
static function Rebind($ownerTypeID, $oldID, $newID)
{
	global $DB;

	$ownerTypeID = (int)$ownerTypeID;
	$oldID = (int)$oldID;
	$newID = (int)$newID;
	$tableName = CCrmContact::TABLE_NAME;
	if($ownerTypeID === CCrmOwnerType::Company)
	{
		$DB->Query(
			"UPDATE {$tableName} SET COMPANY_ID = {$newID} WHERE COMPANY_ID = {$oldID}",
			false,
			'File: '.__FILE__.'
Line: '.__LINE__ ); } }

Добавить комментарий