public static function applyFilters($query, $filters)
     {
         foreach ($filters as $filter => $value) {
             $method = AnInflector::variablize($filter);
             $value = AnConfig::unbox($value);
             if (!is_array($value) || !is_numeric(key($value))) {
                 $args = array($value);
             } else {
                 $args = $value;
             }
             call_object_method($query, $method, $args);
         }
     }