You found a bug! We've classified it as EXTJS-10449 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Sencha Premium Member
    Join Date
    Sep 2010
    Posts
    98
    Vote Rating
    5
    plleeuwm is on a distinguished road

      0  

    Default [>4.1] Code that will never work can get run in readAssociated

    [>4.1] Code that will never work can get run in readAssociated


    Check out the bolded code:

    Code:
    
    
    Code:
        readAssociated: function(record, data) {
            var associations = record.associations.items,
                i = 0,
                length = associations.length,
                association, associationData, proxy, reader;
    
    
            for (; i < length; i++) {
                association = associations[i];
                associationData = this.getAssociatedDataRoot(data, association.associationKeyFunction || association.associationKey || association.name);
    
    
                if (associationData) {
                    reader = association.getReader();
                    if (!reader) {
                        proxy = association.associatedModel.getProxy();
                        // if the associated model has a Reader already, use that, otherwise attempt to create a sensible one
                        if (proxy) {
                            reader = proxy.getReader();
                        } else {
                            reader = new this.constructor({
                                model: association.associatedName
                            });
                        }
                    }
                    association.read(record, reader, associationData);
                }
            }
        }
    Obviously this code path can get hit, but it looks like no tests are hitting this path. new this.constructor doesn't work anymore because it expects this.mixins to be defined but since this code is not calling the actual constructor of the Reader it fails.

    Needless rant in 3...2...1

    It seems like this was written by someone that doesn't know about the this.self property or that when Ext.define is used it returns a class that extends from Ext.Base thus making new this.constructor very bad code. It seems very fishy to me that code which doesn't follow the api or standards provided has been in the source for over 2 years (the entire life of Ext 4). Also since no one has bothered to clean it up it has been a bug for over 1 year now.



    REQUIRED INFORMATION
    Ext version tested:
    Test Case:
    Have associated data on a model but don't have a proxy or a reader on the association.
    • > Ext 4.1

  2. #2
    Sencha - Support Team slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    4,913
    Vote Rating
    179
    slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold

      0  

    Default


    Thanks for the report! I have opened a bug in our bug tracker.

  3. #3
    Sencha Premium Member
    Join Date
    Sep 2010
    Posts
    98
    Vote Rating
    5
    plleeuwm is on a distinguished road

      0  

    Default


    Quote Originally Posted by slemmon View Post
    Thanks for the report! I have opened a bug in our bug tracker.
    Thanks slemmon. What is your avatar supposed to be? It looks like Tom Selleck as Jesus.

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi