• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/entitypropertyvalue.php
  • Класс: BitrixSaleEntityPropertyValue
  • Вызов: EntityPropertyValue::save
public function save(): Result
{
	$this->checkCallingContext();

	$result = new Result();

	if (!$this->isChanged())
	{
		return $result;
	}

	if ($this->getId() > 0)
	{
		$res = $this->update();
	}
	else
	{
		$res = $this->add();
	}

	if (!$res->isSuccess())
	{
		$result->addErrors($res->getErrors());
	}

	$this->callEventOnPropertyValueEntitySaved();

	return $result;
}