On Nov 1, 2007, at 6:41 PM, Mike Orr wrote:
>
> I have two tables Incident and Entry with a 1:many relationship.
> Incident.orr_id is a primary key. Entry.entry_id is a primary key,
> and Entry.orr_id is a foreign key. (The column names are a legacy
> tradition.) I have the following model and classes:
>
> t_incident = Table("Incident", meta,
> autoload=True, autoload_with=engine)
>
> t_entry = Table("Entry", meta,
> Column('orr_id', types.Integer, ForeignKey(t_incident.c.orr_id)),
> autoload=True, autoload_with=engine)
>
what happens if you autoload like the above, and then just say
t_incident.join(t_entry) ? it likely breaks. then, what happens if
you define t_entry before t_incident ?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---