Ext JS Premium Member
Unanswered: Saving objects that are linked hasMany relation with a single Store
We are using a main object (A) that has a hasMany relation with a list of B objects.
For the A object we have a store with specific url api for reading and for updating data.
I have to mention that we have this URL configured only in the Store object A.
When we use the .load() method on the A store we receive a json stream that will contain also a list of B objects and this objects are very well fetched in B list form A object.
After we modify A object and some of the related B objects, and after we call .sync() method on AStore object we discover that the related B objects are not present in the generated json stream, so are not sent to the server together with A object.
Do you have any idea how can I synchronize with a single call the main A objects(along with the list of B objects) with the server?
Thank you very much for any idea regarding this.