On 7/26/06, Kevin Dangoor <[EMAIL PROTECTED]> wrote:
I'm not certain if I'm doing something wrong here, or if this is a
bug. There's a test module at the end of this message.

I've got a table that has two separate columns pointing back to
another table. I've set up relations for both of those and I used
primaryjoin to specify which field is used for each relation (that's
where I might be going wrong).

The way I read things, that's the right approach.

Check out test/orm/mapper.py:testdouble, which does pretty much what you're describing.  I think all you need to do is create aliases for the two uses of the target table.

--
Jonathan Ellis
http://spyced.blogspot.com
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Sqlalchemy-users mailing list
Sqlalchemy-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlalchemy-users

Reply via email to