• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/entitymarker.php
  • Класс: BitrixSaleEntityMarker
  • Вызов: EntityMarker::deleteByEntity
static function deleteByEntity(InternalsEntity $entity)
{
	if($entity->getId() <= 0)
		return false;

	if ($entityType = static::getEntityType($entity))
	{
		$res = static::getList(array(
			'filter' => array(
				'=ENTITY_ID' => $entity->getId(),
				'=ENTITY_TYPE' => $entityType
			),
			'select' => array('ID')
		));
		while($data = $res->fetch())
		{
			static::delete($data['ID']);
		}
	}
}