Results 1 to 1 of 1

Thread: [OPEN-758] prepareAssociatedData appears to collide on different models same id

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User gcallaghan's Avatar
    Join Date
    Apr 2010
    Cupertino, Ca
    Vote Rating

    Default [OPEN-758] prepareAssociatedData appears to collide on different models same id

    Sencha Touch 1.0.1
    Google Chrome

    The prepareAssociatedData routine keeps track of all the associated models loaded.
    prepareAssociatedData: function(record, ids) {
            //we keep track of all of the internalIds of the models that we have loaded so far in here
            ids = ids || [];
    This works fine if there is only 1 associated model
    If there are multiple associated models and perhaps chained associations, this can cause a collision. It is perfectly possible to have different models with the same id. However, in this case the model would not be loaded because...

     //when we load the associations for a specific model instance we add it to the set of loaded ids so that
     //we don't load it twice. If we don't do this, we can fall into endless recursive loading failures.
     if (ids.indexOf(internalId) == -1) {
    so, rather than a simple list of ids, maybe a json object with model names as properties that reference a list of id's ie...

    ids = {
    Last edited by gcallaghan; 3 Feb 2011 at 10:02 AM. Reason: typo

Similar Threads

  1. [OPEN-693] Passwordfield value appears as plain text in Android
    By sailesh in forum Sencha Touch 1.x: Bugs
    Replies: 3
    Last Post: 3 Jun 2011, 7:26 PM
  2. How to link two Models
    By winsent in forum Sencha Touch 1.x: Discussion
    Replies: 0
    Last Post: 12 Dec 2010, 1:39 PM
  3. ExtJS/Sencha and Wordpress Collide
    By mrlynn in forum Community Discussion
    Replies: 0
    Last Post: 23 Nov 2010, 12:28 PM
  4. models inside models
    By kortovos in forum Sencha Touch 1.x: Discussion
    Replies: 2
    Last Post: 27 Sep 2010, 3:43 AM
  5. [OPEN-1240] DateField appears behind Tooltip
    By Andreas B. in forum Ext 3.x: Bugs
    Replies: 0
    Last Post: 26 Aug 2010, 11:28 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