_db->query('TRUNCATE ' . $this->_db->quoteIdentifier($this->_getTableName())); } else { $sql = 'DELETE FROM ' . $this->_db->quoteIdentifier($this->_getTableName()) . ' WHERE ' . Qs_Db::getWhereSql($filter); $this->_db->query($sql); } return $this; } }