-
30 Oct 2012 2:52 AM #1Sencha - Community Support Team
- Join Date
- Nov 2007
- Location
- Helsingborg, Sweden
- Posts
- 2,494
- Vote Rating
- 57
[2.0.1] 'id' field present in subclassed model
[2.0.1] 'id' field present in subclassed model
Expect code above to not include any 'id' field.Code:Ext.define('foo', { extend : 'Ext.data.Model', config : { fields : [ 'bar' ] } }) console.log(foo.prototype.fields.length); // =2
-
30 Oct 2012 5:31 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 34,121
- Vote Rating
- 453
Thanks for the report! I have opened a bug in our bug tracker.
-
26 Nov 2012 8:11 AM #3Sencha - Sencha Touch Dev Team
- Join Date
- Mar 2007
- Location
- Haarlem, Netherlands
- Posts
- 1,235
- Vote Rating
- 5
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.
-
26 Nov 2012 8:24 AM #4Sencha - Community Support Team
- Join Date
- Nov 2007
- Location
- Helsingborg, Sweden
- Posts
- 2,494
- Vote Rating
- 57
Though why should it behave differently in Ext vs Touch?
Looks like we can't reproduce the issue or there's a problem in the test case provided.


Reply With Quote
