given a one-to-many, and the one is deleted I want the many's to be set null.

How do I specify that in a relation cascade rule?

cascade="null-orphan"  ?

and does save-update mean the same as "on update cascade" ?

--

I am having trouble relating these cascade rules to sql referential integrity 
specifications.

And, what if I want the database to handle it, how can I specify that "on 
delete set 
null" will be used for a foreign key, and will sqlalchemy realize that it has 
to 
update it's session identity map in this case?




-- 
Brad Clements,                [EMAIL PROTECTED]    (315)268-1000
http://www.murkworks.com                          
AOL-IM or SKYPE: BKClements



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Sqlalchemy-users mailing list
Sqlalchemy-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlalchemy-users

Reply via email to