Per the URL:

http://livedocs.reactorframework.com/Reactor_Documentation.htm#Delete_a_Reco
rd.htm

The Reactor documentation says that this syntax is valid:

<cfset recordToKill =
Reactor.createRecord("MyRecord").delete(recordId=attributes.recordId) />

However, this syntax does not work for me, with CF8 and SQL 2005 enterprise.
The debug code in CF8 always shows the userId is 0 in the generated query,
even though I have verified that attributes.recordId is set to the proper
value before the call.

The following replacement code DOES work, however:

<cfset recordToKill = Reactor.createRecord("MyRecord") />
<cfset recordToKill.setRecordId(attributes.recordId) />
<cfset recordToKill.delete() />

What could I be doing wrong?  I'd rather not take three lines of code to do
what can and should be done with one.

Marc





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

Reply via email to