On 5/21/15 3:56 PM, Russ wrote:

    nope.  I'd need a complete, self-contained and succinct example I
    can run, thanks


Ok, thanks. This is a beefy one so that will be extremely tricky to extract. I had hoped that the combo of lazy+joined would have been a clear indicator since they are opposite loading strategies.

the word "lazy" there is the name of the field. It is the internal equivalent to the "lazy" argument on relationship:

http://docs.sqlalchemy.org/en/rel_1_0/orm/relationship_api.html?highlight=relationship#sqlalchemy.orm.relationship.params.lazy

that said, here is exactly what will cause your error. Any of the attribute names "defined_items", "child_product" or "number" are not in fact bound to a relationship(), and instead refer to a Column-mapped attribute. Looks a lot like "number" here is a Column. Is that the case? You can't call joinedload for a column attribute.


--
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 sqlalchemy+unsubscr...@googlegroups.com.
To post to this group, send email to sqlalchemy@googlegroups.com.
Visit this group at http://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.

Reply via email to