• Модуль: catalog
  • Путь к файлу: ~/bitrix/modules/catalog/lib/v2/BaseEntity.php
  • Класс: BitrixCatalogv2BaseEntity
  • Вызов: BaseEntity::deleteInternal
public function deleteInternal(): Result
{
	$result = $this->entityRepository->delete($this);

	if ($result->isSuccess())
	{
		foreach ($this->getChildCollections(true) as $childCollection)
		{
			$res = $childCollection->deleteInternal();

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

	return $result;
}