I use deleteByFields() on the gateway object:
ex:
<cfset UserGW = Reactor.createGateway("User").deletebyFields(userId=5) />
Doug S.
On 1/15/07, Seb Duggan <[EMAIL PROTECTED]> wrote:
OK, last question for now:
Still going through the tutorial. The delete method works fine in longhand
mode:
<!--- create a userRecord --->
<cfset UserRecord = reactor.createRecord("User") />
<!--- set the record to delete --->
<cfset UserRecord.setUserId(5) />
<!--- delete the record --->
<cfset UserRecord.delete() />
But if I try the shorthand code:
<cfset UserRecord = Reactor.createRecord("User").delete(userId=5) />
nothing happens...
(Build 408, MS SQL 2000)
Seb
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- --
Reactor for ColdFusion Mailing List
[email protected]
Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- --
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Reactor for ColdFusion Mailing List
[email protected]
Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --