• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/update/product/priceaccount.php
  • Класс: Bitrix\Crm\Update\Product\PriceAccount
  • Вызов: PriceAccount::initialize
protected function initialize(): void
{
	$this->connection = Main\Application::getConnection();
	$this->sqlHelper = $this->connection->getSqlHelper();

	$this->query = [
		self::QUERY_UPDATE => 'update ' . $this->sqlHelper->quote(Crm\ProductRowTable::getTableName())
			. ' set '.$this->sqlHelper->quote('PRICE_ACCOUNT') . ' = \'',
		self::QUERY_WHERE => '\' where '.$this->sqlHelper->quote('ID').' = '
	];

	$this->entityCache = [];
}