• Модуль: catalog
  • Путь к файлу: ~/bitrix/modules/catalog/lib/model/entity.php
  • Класс: BitrixCatalogModelEntity
  • Вызов: Entity::loadEntityCacheItem
private function loadEntityCacheItem($id): void
{
	if (isset($this->cache[$id]))
		return;
	if (empty($this->fields))
		return;

	$iterator = $this->getTablet()->getList([
		'select' => array_values($this->fields),
		'filter' => ['=ID' => $id]
	]);
	$row = $iterator->fetch();
	unset($iterator);
	if (!empty($row))
		$this->setEntityCacheItem($id, $row, true);
	unset($row);
}