[sqlalchemy] Re: subquery as a mapper property

2011-03-17 Thread hoesley
be applied to columns too. On Mar 16, 2011, at 10:23 AM, hoesley wrote: I am trying to create a property on a mapped class which basically executes a subquery. Here is what I'm trying to do in non-working pseudo code: mapper(OrderChain,      Table('order_chains',        self.meta

[sqlalchemy] subquery as a mapper property

2011-03-16 Thread hoesley
I am trying to create a property on a mapped class which basically executes a subquery. Here is what I'm trying to do in non-working pseudo code: mapper(OrderChain, Table('order_chains',self.meta, autoload=True), properties={'entries': relation(OrderChainEntry,