I’m trying to load a model to add dirty data to the store, but can’t seem to load up the actual model to then setData to it…
Doing this:
var model = Ext.ModelMgr.getModel("AT.model.Booking");
returns:
function () {
return this.constructor.apply(this, arguments);
}
Which doesn’t seem right at all. I found a thread about this;
http://www.sencha.com/forum/showthread.php?177658-How-to-get-a-single-model
The following bug report states that it should be fixed in following versions but it doesn’t seem to be… I’m not sure how to integrate the fix mentioned in the bug report…
Correct me if I’m wrong but the argument to pass to the
getModelmethod is theidof the model you want to get. You seem to be passing it the class name of a model.Unless
AT.model.Bookingis anidfor an actual model instance. Which seems weird to me but it’s none of my business then 😛