47 $tableName = static::getTableName();
48 $connection = Main\Application::getConnection();
49 $helper = $connection->getSqlHelper();
52 foreach ($filter as $key => $value)
54 $where[] = $helper->prepareAssignment($tableName, $key, $value);
56 $where = implode(
' AND ', $where);
60 $quotedTableName = $helper->quote($tableName);
61 $connection->queryExecute(
"DELETE FROM {$quotedTableName} WHERE {$where}");