place a unique index on the foreign key column. though the ORM might not know how to update this correctly - you might need a mapper extension that nulls out the column when an old member is detached and a new member attached.
On Dec 9, 2008, at 5:27 AM, [EMAIL PROTECTED] wrote: > > hi. > in SA, 1:1 is represented as relation( ...uselist=False, > backref( ... uselist=False)). The question is, can that cardinality be > enforced somehow - AFAIK that backref is not a real back-link in the > DB. > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
