Results 1 to 2 of 2

Thread: Automatically Deleting Associated Data

  1. #1
    Sencha User
    Join Date
    Feb 2013
    Posts
    36
    Vote Rating
    7
      0  

    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 User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,029
    Answers
    3976
    Vote Rating
    1368
      0  

    Default

    Syncing associated data is not supported in ST 2.1 out of the box.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

Posting Permissions

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