/** * Deletion of records, bypassing DBObject::DBDelete !!! * It is NOT recommended to use this shortcut * In particular, it will not work * - if the class is not a final class * - if the class has a hierarchical key (need to rebuild the indexes) * - if the class overload DBDelete ! * Todo: protect it against forbidden usages (in such a case, delete objects one by one) */ public static function BulkDelete(DBObjectSearch $oFilter) { $sSQL = $oFilter->MakeDeleteQuery(); if (!self::DBIsReadOnly()) { CMDBSource::Query($sSQL); } }