public static function orQueries($queryObjects)
    {
        $className = null;
        $length = count($queryObjects);
        for ($i = 0; $i < $length; $i++)
        {
            if (is_null($className))
            {
                $className = $queryObjects[$i]->className;
            }
            if ($className != $queryObjects[$i]->className)
            {
                throw new \Exception("All queries must be for the same class");
            }
        }
        $query = new AVQuery($className);
        $query->_or($queryObjects);

        return $query;
    }