• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/exchange/entity/userprofilecontactcompany.php
  • Класс: BitrixSaleExchangeEntityUserProfileContactCompany
  • Вызов: UserProfileContactCompany::add
public function add(array $params)
{
	$result = new Result();

	$r = parent::add($params);
	if($r->isSuccess())
	{
		$userId = $this->getEntity()->getField('ID');
		$property = $params["ORDER_PROP"];

		$order = Order::create($userId);
		$order->getPropertyCollection()->setValuesFromPost(['PROPERTIES'=>$property], []);

		EntityMatchManager::getInstance()->match($order);
	}
	return $result;
}