Re: [Sqlalchemy-users] Extra Insert Mapper Problems

2006-09-29 Thread Michael Bayer
when you set up a relationship, in most cases the "foreignkey" parameter refers to the column in join condition that actually contains a FOREIGN KEY constraint on it.   by matching which table the foreignkey is on to the association of classes with those tables, the mapper figures out what kind of

[Sqlalchemy-users] Extra Insert Mapper Problems

2006-09-29 Thread Hogarty, David A.
I’m trying to represent a graph with nodes and edges… For the nodes I’m using polymorphic single-table inheritance. The relevant mapping & code is:   # Mapper classes: # # Project # # Node #   -> Algorithm #   -> Parameter # # Edge   # Project.nodes -> Node (->N) #