Hi,

I'd like to set up a parent/child relationship between Models in my app. I've no doubt its possible within Sencha Touch, just don't know how to declare it properly. Can anyone shed some light?

Here's an example of the json data structure I'm modeling:

Code:
title: "Foo",
sessions: 
[
	{
		title: "Bar",
	},

	{
		title: "Baz",
	}
]
and this is what my Model looks like:

Code:
Ext.regModel('ScheduleItem', {
    fields: [
           {name: 'title', type: 'string'}
        ],
				
	hasMany: [
			{model: 'ScheduleItem', name: 'sessions'}			
	]
});
Thanks