In Ext 4 - this produces expected results. The 'bar' class has 1 and only one field. In Ext 5, it has 'id' too which was never added anywhere.


Code:



Ext.define('foo', {
extend : 'Ext.data.Model',
idProperty : null
})

Ext.define('bar', {
extend : 'foo',
idProperty : 'field1',

fields : ['field1']
})