On Feb 23, 2010, at 1:03 PM, Oliver Beattie wrote:

> Hi all,
> 
> I've run into something I can't for the life of me work out why is
> happening. I've done a quick search and can't find anything.
> Basically, I have a base class that is subclassed (single table
> inheritance) with two relations both pointing to one other table. I'm
> probably confusing as hell, so an code sample will hopefully clear a
> few things up: http://dpaste.org/95hx/

I'm going to guess its the double-usage of "customer_id" as an attribute that 
is confusing things.  the "customer_id" column won't get properly associated 
with a table like that.  Its a little surprising no error is raised beforehand.



> 
> …and a few other classes that extend this in various ways.
> 
> When I now try to query my User table, I get this traceback:
> http://dpaste.org/J8qi/
> 
> If I remove the relations, everything is fine. I'm not entirely sure
> what I should do next to try and fix this? As always, help greatly
> appreciated :)
> 
> —Oliver
> 
> -- 
> 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.
> 

-- 
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