• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/File/Internal/FileDuplicateTable.php
  • Класс: BitrixMainFileInternalFileDuplicateTable
  • Вызов: FileDuplicateTable::markDeleted
static function markDeleted($originalId)
{
	$originalId = (int)$originalId;
	$conn = static::getEntity()->getConnection();
	$table = static::getTableName();

	$conn->query("
		update {$table} 
		set ORIGINAL_DELETED = 'Y' 
		where ORIGINAL_ID = {$originalId} and ORIGINAL_DELETED = 'N'
	");

	static::cleanCache();
}