My Client object has a createdByUserID field, which should be set to the
id of the user that created it.  I could just stick <cfset
this.createdbyuserid = session.user.getUserId()> in the ClientTO.cfc but
this just seems bad.

I'd like to set this in one place, so how should I go about setting this
without littering my code with calls to setCreatedByUserId()?

I'm not using a framework, but could coldspring help with this?

Cheers, 
Chris





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

Reply via email to