Hello everybody, I have a question I couldn't find answer on my own so I'll greatly appreciate if someone could give me an answer.
Considering simple model https://gist.github.com/momyc/7554839, why would query like the following work: session.query(SourceA).join(SourceA.trans).filter(Trans.amount>0) while the following one fails to build join expression: session.query(SourceA).join(Trans).filter(Trans.amount>0) I suspect that this is because there is not ForeignKey in class/mapper/table declaration. Or, perhaps, I missed something in building that relationship. It's not a show stopper and I can definitely live with that but knowing why would bring harmony back to this world :) - Alex K -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sqlalchemy. For more options, visit https://groups.google.com/groups/opt_out.
