**Sencha Touch question:**
I've got two models (Category-->Object) with associations
Here is the CategoryModel:
Ext.define("TouchApp.model.CategoryModel", {
extend: "Ext.data.Model",
config: {
fields: [
{
name: 'id',
type: 'int'
},
{
name: 'name',
type: 'String'
}
],
//Aide: http://docs.sencha.com/touch/2.2.1/#!/api/Ext.data.association.Association
associations: [
{ type: 'hasMany', model: 'ObjectsModel', primaryKey: 'id', foreignKey: 'category'}
]
}
});
And here is the ObjectsModel:
Ext.define("TouchApp.model.ObjectsModel", {