public static function registerSchema($schemaName, $schemaClass)
    {
        self::$schemaClasses[$schemaName] = $schemaClass;

        // Invalidate the caches
        self::$modelClassesCache = null;
        self::$modelNamesCache = null;
        self::$relationshipCache = null;
    }