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 - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,553
    Answers
    3931
    Vote Rating
    1272
      0  

    Default

    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! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    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
  •