[sqlalchemy] joinedloads under a subqueryload

2014-10-21 Thread Jonathan Vanasco
I've been staring at this for a while, and can't figure out a way to make the mapper happy: i have 3 Classes (tables): * List (list) * ListItem (list_item) * ItemType1 (item_type_1) * ItemType2 (item_type_2) * ItemType3 (item_type_3) until now i've been using a joinedload

Re: [sqlalchemy] joinedloads under a subqueryload

2014-10-21 Thread Michael Bayer
On Oct 21, 2014, at 6:07 PM, Jonathan Vanasco jvana...@gmail.com wrote: I've been staring at this for a while, and can't figure out a way to make the mapper happy: i have 3 Classes (tables): * List (list) * ListItem (list_item) * ItemType1 (item_type_1) * ItemType2

Re: [sqlalchemy] joinedloads under a subqueryload

2014-10-21 Thread Jonathan Vanasco
subqueryload(‘list_item’), joinedload('list_item.item_type_1'), joinedload('list_item.item_type_2'), joinedload('list_item.item_type_3'), ah! so sqlalchemy is smart enough to magically map the joinedloads onto the subqueryload! I never would have guessed that! -- You received this