Looks like we can't reproduce the issue or there's a problem in the test case provided.
  1. #1
    Sencha - Community Support Team mankz's Avatar
    Join Date
    Nov 2007
    Location
    Helsingborg, Sweden
    Posts
    2,494
    Vote Rating
    57
    mankz is a jewel in the rough mankz is a jewel in the rough mankz is a jewel in the rough mankz is a jewel in the rough

      0  

    Default [2.0.1] 'id' field present in subclassed model

    [2.0.1] 'id' field present in subclassed model


    Code:
     Ext.define('foo', {
            extend : 'Ext.data.Model',
            config : {
                fields : [
                    'bar'
                ]
            }
        })
        console.log(foo.prototype.fields.length);  // =2
    Expect code above to not include any 'id' field.

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    34,121
    Vote Rating
    453
    mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of

      0  

    Default


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

  3. #3
    Sencha - Sencha Touch Dev Team
    Join Date
    Mar 2007
    Location
    Haarlem, Netherlands
    Posts
    1,235
    Vote Rating
    5
    TommyMaintz will become famous soon enough

      0  

    Default


    Actually there needs to be an id field on every Model. If you don't want it to be id, set the idProperty and create another field that acts as an id field.

    Marking this as wontfix in the meantime.

  4. #4
    Sencha - Community Support Team mankz's Avatar
    Join Date
    Nov 2007
    Location
    Helsingborg, Sweden
    Posts
    2,494
    Vote Rating
    57
    mankz is a jewel in the rough mankz is a jewel in the rough mankz is a jewel in the rough mankz is a jewel in the rough

      0  

    Default


    Though why should it behave differently in Ext vs Touch?