You should probably look here:
http://docs.transfer-orm.com/wiki/Persisting_and_Retrieving_Objects.cfm#Object_Retrieval

Use get() to retrieve by primary key

User readByProperty() to retrieve by unique index.

Mark

On Tue, Nov 11, 2008 at 9:57 AM, Ken Cummins <[EMAIL PROTECTED]> wrote:
>
> I feel almost foolish asking what I think is a simple question.  I
> have trouble with online docs, and for whatever reason, the Transfer
> docs and various articles just haven't settled in...
>
> I've done my share of direct-to-SQL database hacks, and I was taught
> all the fancy OO methodologies, but for whatever reason, I feel as
> though I'm beating my head against a brick wall trying to design for
> and use Transfer.
>
> My current problem (besides having to learn ColdFusion after years of
> being a Perl/csh based sys admin and PHP hack) is that I have a table
> that has a unique index as well as the primary key.  I need to be able
> to retrieve records/objects based on either value depending on the
> circumstances.  Is there a built-in way of doing this, or will I have
> to use a query function of some sort? Is there a query function that
> returns a single object, rather than a list?
>
> My head hurts...
>
> Ken
>
> ps: Suggestions of good db books would be welcome!
>
> >
>



-- 
E: [EMAIL PROTECTED]
W: www.compoundtheory.com

--~--~---------~--~----~------------~-------~--~----~
Before posting questions to the group please read:
http://groups.google.com/group/transfer-dev/web/how-to-ask-support-questions-on-transfer

You received this message because you are subscribed to the Google Groups 
"transfer-dev" group.
To post to this group, send email to transfer-dev@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/transfer-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to