Ah, thanks so much. Guess sometimes you just need a second pair of eyes to spot where you've messed it up :)
On Feb 23, 7:29 pm, Michael Bayer <mike...@zzzcomputing.com> wrote: > 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 sqlalch...@googlegroups.com. > > To unsubscribe from this group, send email to > > sqlalchemy+unsubscr...@googlegroups.com. > > For more options, visit this group > > athttp://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 sqlalch...@googlegroups.com. To unsubscribe from this group, send email to sqlalchemy+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/sqlalchemy?hl=en.