Results 1 to 3 of 3

Thread: [FIXED][PR4] Dependency loading with models

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Dec 2009
    Location
    Paris, FR
    Posts
    9
    Vote Rating
    0
      0  

    Default [FIXED][PR4] Dependency loading with models

    Hi,
    the following code doesn't work if if I haven't loaded manually the class 'Tab.Models.User.Basic'.

    Code:
    Ext.regModel('Tab.Models.User.Frontend', {
        'extend'    : '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' ?

    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.

  2. #2
    Sencha User edspencer's Avatar
    Join Date
    Jan 2009
    Location
    Palo Alto, California
    Posts
    1,939
    Vote Rating
    11
      0  

    Default

    We're working on refactoring this to bring Model definition into line with the rest of the framework. Stay tuned!
    Ext JS Senior Software Architect
    Personal Blog: http://edspencer.net
    Twitter: http://twitter.com/edspencer
    Github: http://github.com/edspencer

  3. #3
    Sencha User evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    18,984
    Vote Rating
    933
      0  

    Default

    Should be fixed up for the next release.
    Twitter - @evantrimboli
    Former Sencha framework engineer, available for consulting.
    As of 2017-09-22 I am not employed by Sencha, all subsequent posts are my own and do not represent Sencha in any way.

Similar Threads

  1. Model.load not sending id, loading all models
    By dewie in forum Sencha Touch 1.x: Discussion
    Replies: 27
    Last Post: 25 Feb 2015, 10:03 AM
  2. Loading Multiple Models by Association using Store
    By babar.sajjad in forum Sencha Touch 1.x: Discussion
    Replies: 3
    Last Post: 31 Mar 2011, 6:56 AM
  3. Model: Lazy loading associated models
    By Mithon in forum Ext: Discussion
    Replies: 3
    Last Post: 23 Mar 2011, 11:16 AM
  4. [FIXED]Models and Stores
    By sg707 in forum Ext:Bugs
    Replies: 5
    Last Post: 20 Feb 2011, 3:50 AM
  5. Replies: 3
    Last Post: 10 Mar 2010, 3:54 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •