4 Apr 2013 3:54 AM #1
Answered: Automatically Deleting Associated Data
I'm using the HasMany Association on some data in a LocalStorage proxy. So far it seems to be working well in 2.1.1.
However, when I remove all records on the parent store, the data stored in the associated models is not removed, leaving it orphaned.
I've added in a routine to run through the records in the store cleaning their associated data before removing the records, but I was wondering if there was a config that I could set that ensured that when a parent object was removed, the associated objects are removed from their store as well?
Syncing associated data is not supported in ST 2.1 out of the box.
6 Apr 2013 5:34 AM #2
- Join Date
- Mar 2007
- Gainesville, FL
- Vote Rating
Syncing associated data is not supported in ST 2.1 out of the box.Mitchell Simoens @LikelyMitch
Sencha Inc, Senior Software Engineer
Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/
Need more help with your app? Hire Sencha Services email@example.com
Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!
When posting code, please use BBCode's CODE tags.