#1169: SingleJoin, MultipleJoin not working.
-----------------------------+----------------------------------------------
Reporter: miya | Owner: jorge.vargas
Type: defect | Status: closed
Priority: normal | Milestone:
Component: Toolbox.Catwalk | Version: 1.0b1
Severity: normal | Resolution: fixed
Keywords: |
-----------------------------+----------------------------------------------
Changes (by miya):
* status: new => closed
* resolution: => fixed
Comment:
Ok. I think I solved the problem.
The thing is that the User's table name is 'tg_user', and whenever you do
a MultipleJoin or SingleJoin you have to explicity specify which is the
name of the joinColumn, which '''must''' be '''user_id'''.
myPet = SingleJoin("Pet", joinColumn = "user_id")
I think that joinColumn defaults to the name of the table + '_id' or sth
like that.
Sooo... watch it when you change the table property of the sqlmeta class
cya!
--
Ticket URL: <http://trac.turbogears.org/turbogears/ticket/1169>
TurboGears <http://www.turbogears.org/>
TurboGears front-to-back web development
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears Tickets" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/turbogears-tickets?hl=en
-~----------~----~----~----~------~----~------~--~---