• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/kanban/sort.php
  • Класс: Bitrix\Crm\Kanban\SortTable
  • Вызов: SortTable::clearEntity
static function clearEntity($entityId, $entityType)
{
	$entityType = \CCrmOwnerType::ResolveID($entityType);
	$res = self::getList(array(
		'select' => array(
			'ID'
		),
		'filter' => array(
			'ENTITY_TYPE_ID' => $entityType,
			'ENTITY_ID' => $entityId
		)
	));
	while ($row = $res->fetch())
	{
		self::delete($row['ID']);
	}
}