hi
i cant get how to configure cascades over many-to-many relations.
in my case these are implicit m2m (via secondary-table), being treated 
as either versioned one2many, or versioned many2one.

lets say there is versioned A having many versioned Bs. 
(' and " denote version number):
A1' has B1 which has versions:
 A1'.bs = [B1', B2']
(another timestamp)
 A1'.bs = [B1", B2']
A2 has versions which keep same B2, one has also B3:
 A2'.bs = [B2']
(another timestamp)
 A2".bs = [B2', B3']

deleting A1' should delete B1' and B1"
deleting A2' should not delete B2'; only deleting all A2' and A2" and 
A1' should delete B2'.
is this "all,delete-orphan" given to the A.relation(B) ? 
or only "delete-orphan"? 
how about backrefs (if any)

the other case: versioned A having one versioned B.
A1' has B1 which has versions:
 A1'.b = B1'
(another timestamp)
 A1'.b = B1"
A2 has versions which keep same B2:
 A2'.b = B2'
(another timestamp)
 A2".b = B2'
seems same as above. but probably backrefs config are different..

any idea - or pointers to read?

svilen

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to