Updated, will test later this afternoon.

Onsite at the moment... thank god for Airport Express.

Laterz,
J


------------------------------------------------

Jared C. Rypka-Hauer

Continuum Media Group LLC

http://www.web-relevant.com

Member, Team Macromedia - ColdFusion


"That which does not kill me makes me stranger." - Yonah Schmeidler


On Apr 19, 2006, at 1:30 PM, Doug Hughes wrote:

Found a few bugs in reactor while updating the reactor blog sample.  I've
fixed the bugs and committed the update to RB and Reactor. 

I also added the feature below.

After some rest I'll do the contact manager then I'm going to stop messing
around in here for a bit.

Doug

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf
Of Doug Hughes
Sent: Wednesday, April 19, 2006 2:20 PM
Subject: RE: [Reactor For CF] New Commit committed (UPDATED!)

OK. Is there any thought of adding cascading delete so that the first
code *would* also delete all related sub-objects?

I discussed this a bit last night, but for now I'm going to hold off on
this.  I don't see an urgent need for it.

Yes, please. Then I can do this:

<cfset user.removeAddress().delete() />
<cfset user.save() />

Done and will be committed shortly.

Doug

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf
Of Sean Corfield
Sent: Wednesday, April 19, 2006 1:45 PM
Subject: Re: [Reactor For CF] New Commit committed (UPDATED!)

On 4/19/06, Doug Hughes <[EMAIL PROTECTED]> wrote:
The following code will delete the user but not the address.

<cfset user.delete() />

The following code will cause a dbms-specific constraint error to be
thrown.
You can't delete the user's address.

<cfset user.getAddress().delete() />

OK. Is there any thought of adding cascading delete so that the first
code *would* also delete all related sub-objects?

<cfset address = user.getAddress() />
<cfset user.removeAddress() />
<cfset user.save() />
<cfset address.delete() />

(Should removeAddress return the address that was removed?  Akin to a
pop()
method?)

Yes, please. Then I can do this:

<cfset user.removeAddress().delete() />
<cfset user.save() />
--
Sean A Corfield -- http://corfield.org/
Got frameworks?

"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood



-- Reactor for ColdFusion Mailing List -- [email protected]





-- Reactor for ColdFusion Mailing List -- [email protected]





-- Reactor for ColdFusion Mailing List -- [email protected]



Reply via email to