Thanks! That works exactly as I needed. I knew there was a problem in the secondaryjoin, so i commented it out.
This works more intuitively than my other composite relationships, which are all more complex. The joining you used is: primaryjoin: A->B secondaryjoin: B->B2C secondary: B2C->C -- SQLAlchemy - The Python SQL Toolkit and Object Relational Mapper http://www.sqlalchemy.org/ To post example code, please provide an MCVE: Minimal, Complete, and Verifiable Example. See http://stackoverflow.com/help/mcve for a full description. --- You received this message because you are subscribed to the Google Groups "sqlalchemy" group. To unsubscribe from this group and stop receiving emails from it, send an email to sqlalchemy+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/sqlalchemy/71b757c9-6665-4cb2-8b57-d8f7fddd9fe5%40googlegroups.com.