On Jan 17, 2008, at 7:51 PM, Rick Morrison wrote:

> An expunge on an collection remove that creates an orphan wouldn't  
> be a surprise to me; I'm surprised that it doesn't do that now.
>
> +1 for error on case 1 plus auto-remove in case 2


would the expunge happen at attribute change time or at flush time?

does that expunge cascade through the expunged object too ?

what if the expunged object references things that are persistent ?   
do we expunge them still ?

what if the expunged object references other pending objects, but they  
are valid, and might even be referenced by other, valid pending/ 
persistent objects in the session ?  do we expunge those ?

seems like a ton of guesswork....which is why i prefer the developer  
to have a clue whats in and whats not in his or her session before  
flushing......

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