Results 1 to 2 of 2

Thread: Automatically Deleting Associated Data

  1. #1
    Sencha User
    Join Date
    Feb 2013
    Vote Rating

    Default 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?

  2. Syncing associated data is not supported in ST 2.1 out of the box.

  3. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    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
    Learn BBCode and use it!

    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.

    Need more help with your app? Hire Sencha Services

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts