On May 18, 2009, at 7:01 AM, Wichert Akkerman wrote:

>
>    session = orm.relation("SurveySession", cascade="all",
>            remote_side=["SurveySession.id"],
>            primaryjoin="SurveySession.id==TreeNode.session_id")
>    parent = orm.relation("TreeNode", cascade="all",
>            remote_side=["TreeNode.id"],
>            primaryjoin="TreeNode.id==TreeNode.parent_id")

you want to say 'remote_side="TreeNode.id"' here, or  
'remote_side="[TreeNode.id]"'.   Or just 'remote_side=id'.   the  
argument to remote_side is one of:  1. a string that is evaluated  
entirely 2. a column 3. a list of columns


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

Reply via email to