Hi

I'm trying to order by a column from a relationship.

Taken example from:

http://www.sqlalchemy.org/docs/orm/loading.html#routing-explicit-joins-statements-into-eagerly-loaded-collections

In case of

query.options(joinedload_all('orders.items.keywords'))...

or

query.options(joinedload_all(User.orders, Order.items, Item.keywords))

I would like to do something like:

query.options(joinedload_all('orders.items.keywords')).order_by('user.orders.items.keywords.name')


Tried this above but didn't work. Searched for some sample/tutorials
but with no luck.

thanks for any direction.

marc

-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en.

Reply via email to