Thank you for reporting this bug. We will make it our priority to review this report.
[FIXED][PR4] Dependency loading with models
the following code doesn't work if if I haven't loaded manually the class 'Tab.Models.User.Basic'.
I've noticed that in Ext.define method, the classes passed in the configuration with the keys 'extend' and 'requires' are automatically loaded. Shouldn't it be the same for Ext.regModel with 'extend' ?
'extend' : 'Tab.Models.User.Basic',
How about adding a "requires" configuration key in Ext.regModel ? It would prevent the developer from having to add manually pre-loading routines and would keep the definition of the model (requirements are part of the definition, IMO) inside the configuration object-literal.
We're working on refactoring this to bring Model definition into line with the rest of the framework. Stay tuned!
Should be fixed up for the next release.
Twitter - @evantrimboli
Don't be afraid of the source code!