PDA

View Full Version : models inside models



kortovos
27 Sep 2010, 3:22 AM
Can you uses models inside models? Something like the example below.


Ext.regModel('orderList', {
fields : [ {
name : 'orderid',
type: 'integer'
}, {
name : 'order',
type: 'order'
}]
});

Ext.regModel('order', {
fields : [ {
name : 'name',
type: 'string'
},{
name : 'date',
type: 'date'
}]
});

evant
27 Sep 2010, 3:37 AM
Not exactly, but in future versions there will be Associations that lets you link pieces of data together.

kortovos
27 Sep 2010, 3:43 AM
For which date/release is this planned?