I am using ExtJS 4 and have a model with hasMany association.
ModelA -> hasMany -> ModelB
I use GridA to display data from ModelA. When I click on a record in GridA, I use the rowSelect event to create GridBs that use ModelA.ModelB () as storage.
Everything goes well until I change the entry in ModelB. The record is updated in the hierarchy, but when I execute the StoreA.save () function, no changes are returned to the server. He does not notice changes in associations. How to save this data without breaking into the architecture?
I expect the model to be able to save, exactly as it loads.
Also, when I change a record in ModelA, it returns only as ModelA, not ModelA-> ModelB, even if this record has ModelB data.
thanks
source share