• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/entitypropertyvaluecollection.php
  • Класс: BitrixSaleEntityPropertyValueCollection
  • Вызов: EntityPropertyValueCollection::delete
static function delete(array $value)
{
	$result = new Result();

	$r = static::deleteInternal($value['ID']);

	if ($r->isSuccess())
	{
		$registry = Registry::getInstance(static::getRegistryType());

		$propertyClass = static::getPropertyClassName();
		/** @var EntityProperty $property */
		$property = $propertyClass::getObjectById($value['ORDER_PROPS_ID']);
		if ($property && isset($value['VALUE']))
		{
			$property->onValueDelete($value['VALUE']);
		}
	}
	else
	{
		$result->addErrors($r->getErrors());
	}

	return $result;
}