I'm trying to load a reactor record object that hasMany child records and modify it in cache. I only want to persist the changes after modifying child records (add/edit/delete etc).
So far I can add child records to the iterator array and when I save the main record the child objects are created or updated in the db as expected. I am now trying to delete items from the iterator array and have the changes take effect when I save the parent record but I can't seem to get it working. iterator.add() seems to add the new record to the end of the current array however iterator.delete() seems like it will actually delete the child record from the database (if it exists) however I don't want that to happen until the parent is saved, I only want to remove it from the cached iterator array How would I go about removing records from the cached record iterator so that the changes will only be modified in the database when the parent is saved? I am currently using getFaqItemIterator().delete(index) from a function in the parent record but it doesn't seem to be working. Any thoughts? -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- Reactor for ColdFusion Mailing List [email protected] Archives at: http://www.mail-archive.com/reactor%40doughughes.net/ -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
