[sqlalchemy] Re: Allowing orphaned children

2009-02-07 Thread Michael Bayer
cascade=all includes delete cascade. any Hat objects attached to User will be deleted when the User is deleted.To resolve, leave the cascade argument out. it defaults to save-update, merge which is enough for most use cases. On Feb 6, 2009, at 11:05 PM, James wrote: Hi, I'm

[sqlalchemy] Re: Allowing orphaned children

2009-02-07 Thread James
Oh, of course - thanks Michael! On Feb 7, 1:51 pm, Michael Bayer mike...@zzzcomputing.com wrote: cascade=all includes delete cascade.   any Hat objects attached to   User will be deleted when the User is deleted.    To resolve, leave   the cascade argument out.  it defaults to save-update,