You found a bug! We've classified it as a bug in our system. We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Ext JS Premium Member
    Join Date
    Jul 2008
    Location
    Miami, FL
    Posts
    56
    Vote Rating
    1
    omarc is on a distinguished road

      0  

    Default Model Inheritance Bug

    Model Inheritance Bug


    I am having trouble with ExtJS 4.2.0 with inheritance and models.

    I have a case where I need to have the fields, associations and proxy defined in a superclass, however, the associations aren't loaded properly.

    I attached a sample case that illustrates the problem, an invoice model that has invoice lines.

    It displays a message to the console where both associations should be defined.

    If the associations and fields are defined without the superclass, then it works as expected.

    How can I work around this problem?

    Thanks in advance,

    Omar
    Attached Files

  2. #2
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    16,998
    Vote Rating
    649
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      0  

    Default


    We have a ticket open for this: EXTJSIV-9639

    Thanks for the test case.
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

  3. #3
    Ext JS Premium Member
    Join Date
    Jul 2008
    Location
    Miami, FL
    Posts
    56
    Vote Rating
    1
    omarc is on a distinguished road

      0  

    Default


    Thanks for the quick response.

    Is there any way to work around the issue in the meantime?

    Thanks again,

    Omar

  4. #4
    Sencha User
    Join Date
    Jul 2010
    Posts
    50
    Vote Rating
    -1
    hdave is an unknown quantity at this point

      0  

    Default


    I believe this issue also exists for mixins. If you add a mixin to a model class, the associations will not have their model objects loaded.

    Likewise, would be very interested in a work-around that doesn't involve duplicating association definitions everywhere.

Thread Participants: 2