PDA

View Full Version : where to define an overwrite for Ext.data.BelongsToAssociation in MVC application



mariominati
3 Oct 2011, 12:50 PM
Hello @all,

I need to define an overwrite for Ext.data.BelongsToAssociation.

As this is an app following the MVC guides of ExtJS 4, I have no idea where to define this overwrite.

In app.launch / onReady would be to late, as the models are being autoloaded.

Are there any ideas or best practices?


Best greets,

Mario

mariominati
8 Oct 2011, 4:56 AM
bump

mariominati
11 Oct 2011, 3:21 PM
bump

twaindev
11 Oct 2011, 3:43 PM
This is not an Ext Core question, so that is probably why you didn't get an answer here.

But I normally do this:



Ext.require('Ext.data.BelongsToAssociation', function() {
Ext.data.BelongsToAssociation.override({
....
});
});

Ext.application({
....
});