Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Dec 2007
    Posts
    118
    Vote Rating
    12
    corvonero will become famous soon enough

      0  

    Default Model association bug

    Model association bug


    I haven't had much time to investigate on this,
    but I think I spotted a bug/problem.

    When you describe a model -> model assosiaction (hasMany / hasOne) the getters/setters are not correctly placed.

    This occurs with extjs 4.1.x

    It *might* be a loading time issue or just a glitch.

    If you don't explicitly define a setter/getter you end up with this:

    ownerProto[getterName] = me.createGetter();
    ownerProto[setterName] = me.createSetter();

    where getterName and setterName are:

    getAPPNAME.models.SomeModel
    while it should be
    getSomeModel

    this can either be fixed at architect level or extjs level...
    as long as there is consistency...

    M.

  2. #2
    Sencha User
    Join Date
    Dec 2007
    Posts
    118
    Vote Rating
    12
    corvonero will become famous soon enough

      0  

    Default


    temporary fix:

    manually set getters/setters in sencha architect!

    M.

  3. #3
    Sencha User
    Join Date
    Dec 2007
    Posts
    118
    Vote Rating
    12
    corvonero will become famous soon enough

      0  

    Default


    similar problem with foreignKey and other stuff...
    to fix, explicitly set the correct values...

  4. #4
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,399
    Vote Rating
    128
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      0  

    Default


    corvonero -

    It does sound like you have spotted a potential bug but we'll need some more details in order to troubleshoot and fix this issue. Could you provide a set of steps that illustrate the issue?
    Aaron Conran
    @aconran
    Sencha Architect Development Team

  5. #5
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,399
    Vote Rating
    128
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      0  
    Aaron Conran
    @aconran
    Sencha Architect Development Team

Thread Participants: 1