Michael Bayer wrote: > > session > .query(Record).with_parent(unit).order_by(Record.date.desc()).first()
OK, this works... > alternatively, to do exactly what you stated above, i.e. > unit.records.order_by()... etc., you can use a "dynamic" relation > which establishes relations as Query objects. use lazy="dynamic" for > this and see the examples in the "Large Collections" portion of the > documentation. Which docs do I need to understand what all this means and where do I find them? cheers, Chris -- Simplistix - Content Management, Zope & Python Consulting - http://www.simplistix.co.uk --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---