George Sakkis wrote:
>
> This was just an example, in the actual case the table schema is
> reflected so there's no explicit ForeignKey, that was the whole point
> of messing with primaryjoin/foreign_keys in the first place. So is
> there another way (or even workaround) to avoid passing explicitly the
> condition ?
>
override it on your Table:
t = Table("mytable", m,
Column('some_foreign_key', ForeignKey('foo.id')),
autoload=True
)
also, if you use anything other than MySQL ISAM, the foreign keys are
reflected.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---