Dear all,

I'm using MVC. Recently I encountered a problem loading a model for a store, getting a naming error:

Code:
Ext.application({
    name: 'Test',
    views: ['MyView'],
    models: ['MyModel'],
    stores: ['MyStore'],
    launch: function() {
        Ext.Viewport.add(Ext.create('Test.view.MyView'));
    }
});


Ext.define('Test.model.MyModel', {
    extend: 'Ext.data.Model',
    config: {
        fields: ...
    }
});

Ext.define('Test.store.MyStore', {
    extend: 'Ext.data.Store',
    config: {
        model: 'MyModel', // error - instead 'Test.model.MyModel' is required ...
        ...
    }
});

Ext.define('Test.view.MyView', {
    extend: 'Ext.DataView',    
    config: {
        store: 'MyStore',
        itemTpl: ...
    }    
});
In the DataView declaration the abbreviation 'MyModel' is fine but for the Store declaration this results in an error "MyModel does not exist". Replacing MyModel with Test.model.MyModel fixes the problem. For me, this seems to be inconsistent. Or is there another error in my code?

-Niko