[sqlalchemy] Re: Cant locate any foreign key columns in primary join condition (one-to-many tree)

2007-07-09 Thread Patrick McKinnon
I'm still having problems with this (sorry about the huge delay, I got side-tracked for a while). After creating parent/child/attribute table rows, I get one of two errors when I try to print parent.attributes: If I use the column name id in my child table I get this error:

[sqlalchemy] Re: Cant locate any foreign key columns in primary join condition (one-to-many tree)

2007-05-24 Thread Michael Bayer
On May 24, 2007, at 10:02 AM, Patrick McKinnon wrote: sqlalchemy.exceptions.ArgumentError: Cant locate any foreign key columns in primary join condition 'attribute.child_id = child.id AND child.parent_id = parent.id' for relationship 'Parent.attributes (Attribute)'. Specify 'foreign_keys'