I'm just working my way thru

http://livedocs.reactorframework.com/Reactor_Documentation.htm

and I've come across something strange:

<cfset UserRecord = Reactor.createRecord("User") />
<cfset UserRecord.setUserId(1) />
<!--- load the record --->
<cfset UserRecord.load() />
<!--- let's dump the default values in the UserRecord --->

oops!

Ambiguous Record
Your request matched more than one record.

I have 3 records in that table with id's of 1,2,3.

HOWEVER... if I use the short hand method

<cfset UserRecord = Reactor.createRecord("User").load(userId=1) />

all is well.

any ideas?

thanx
barry.b


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

Reply via email to