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

        // Invalidate the caches
        self::$modelClassesCache = null;
        self::$modelNamesCache = null;
        self::$relationshipCache = null;
    }
public static function registerSchema($schemaName, $schemaClass)
    {
        self::$schemaClasses[$schemaName] = $schemaClass;

        // Invalidate the caches
        self::$modelClassesCache = null;
        self::$modelNamesCache = null;
        self::$relationshipCache = null;
    }
public static function registerSchema ( $ schemaName , $ schemaClass ) { self :: $ schemaClasses [ $ schemaName ] = $ schemaClass ; // Invalidate the caches self :: $ modelClassesCache = null ; self :: $ modelNamesCache = null ; self :: $ relationshipCache = null ; }
Registers a schema class to provide the schema for a given schema name.

Not that the class should just be a class name, not an instance of the class. This ensures that schema objects
(which can be quite large) are only instantiated when needed.

@param $schemaName
@param $schemaClass
Registers a schema class to provide the schema for a given schema name .