• Модуль: catalog
  • Путь к файлу: ~/bitrix/modules/catalog/lib/v2/Sku/SimpleSku.php
  • Класс: BitrixCatalogv2SkuSimpleSku
  • Вызов: SimpleSku::deleteInternal
public function deleteInternal(): Result
{
	$result = new Result();

	// delete child collections without entity fields itself (it was deleted with parent product entity)
	foreach ($this->getChildCollections(true) as $childCollection)
	{
		$res = $childCollection->deleteInternal();

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

	return $result;
}