You can save the parent record, which does a cascade through its children and saves dirty records.

~Dave

On 10/19/06, Dan Sorensen < [EMAIL PROTECTED]> wrote:

Given the example on this page: http://livedocs.reactorframework.com/Other_Types_of_Relationships.htm

 

How would one save changes to customer records that were retrieved via the getCustomerIterator()? The page says that "there is no setCustomerIterator() method". Looking at the iterator.cfc, I see there are delete(), deleteAll() and add() methods. Do I work with those methods to remove/add/update iterated records? If so, do I save each iterated record separately or do the saves commit when I save the parent record?

 

I'm interested in any previous thread or bit of documentation that would clarify the best practice.

 

Dan

 


-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Reactor for ColdFusion Mailing List
[email protected]
Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --



--
~Dave Shuck
[EMAIL PROTECTED]
www.daveshuck.com

Where's your Spot?
www.instantspot.com
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Reactor for ColdFusion Mailing List
[email protected]
Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

Reply via email to