On May 23, 2007, at 4:15 PM, Randall Smith wrote:

>
> With this relationship
>
> Record.mapper = sa.mapper(Record, records,
>      properties={
>          'tinwsys' : sa.relation(Tinwsys, secondary=records_tinwsys,
>                                  backref=sa.backref('efile_records')
>      }
> )
>
> SA is deleting associated records in records_tinwsys when a Tinwsys
> record is deleted. This only occurs when backref is defined. The
> intended behavior is for nothing to happen to records_tinwsys when a
> Tinwsys record is deleted. How do I accomplish this?

what would the FK column in records_tinwsys reference if the parent  
record is deleted ?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to