Hi,

thanks a lot, it works, but when I call doSelectJoinXXX, I cannot reference 
joined table fields.
Forumtopic has a field named FT_NAME
When I call BaseForumnotes.getForumtopic(), it has  getFtName() method.
doSelectJoinXXX.getFtName() doesn't works.

at 2003. febru�r 8. 13:43 wrote:
> Marc is correct that this message would be better addressed to
> [EMAIL PROTECTED]
>
> In answer to your question, if the foreign key is correctly declared in
> your schema, the torque generated classes will provide methods that do what
> you are after.  If you examine the generated classes you should find
> something like:
>
>     BaseForumnotesPeer.doSelectJoinForumtopic(criteria)
>     BaseForumnotes.getForumtopic()
>     BaseForumtopic.getForumnotes()
>     BaseForumtopic.getForumnotes(criteria)
>     BaseForumtopic.getForumnotesJoinForumtopic(criteria)
>
> I am pretty sure one of these will provide what you are after.  You would
> invoke these on Forumnotes or Forumtopic objects or the class
> ForumnotesPeer rather than the Base* subclasses.  Some of the generated
> methods are protected so as to require you to make a conscious decision to
> expose them by overriding them in the extending class.
>
> HTH,
>
> Scott

-- 
thx,
----------------------------------------------------
Zoltan Zidarics programmer
PTE University Pecs, Hungary
icq: 43288694

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to