PDA

View Full Version : model with child model like in hasMany sample?



pinidbest
26 Jun 2012, 12:29 AM
Hi all,
I just read this sample:
http://docs.sencha.com/ext-js/4-0/#!/api/Ext.data.reader.Reader
On how to have a hasMany relation between 2 model.

I want to accomplish this but by using a store.
In my case my model are simple and contian only field definitions and I want that when my nested hson will return from the server each top level model will create a child model that will be attached to it.

How do i accomplish this?

mitchellsimoens
6 Jul 2012, 2:05 PM
Have you tried using multiple hasMany?