I'm stuck and have been digging through the list without success. When I attempt to use deleteByFields() I keep getting the message that the function is not in my gateway object.

The methods available are:
_getAlias, _getSignature, _setConfig, _setConvention, _setName, _setReactorFactory, configure, createQuery, getAll, getByFields, getByQuery

What am I doing wrong on this one?

I made it work for now by using getByQuery() and then looping the delete with createRecord(), but that seems silly if I can do it in fewer lines of code and one transaction.

Here's what I was trying (where variables.dbservice is the reactorFactory):

<cfset var dbservice = variables.dbservice />
<cfset var connection = dbservice.createGateway("user_connect") />
<cfset connection.deleteByFields(user_connect_userid=arguments.userid)/>

Thanks,

Jon




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

Reply via email to