On Jan 17, 2008, at 7:32 PM, jason kirtland wrote:
> > I don't think the discussion about discarding unpersisted collection > orphans made the hop onto the list (IRC only) - anyone have an > opinion? > I think I'm still in favor of quashing this exception. yeah just tell me what youd like to happen here: mapper(A, a, properties={ 'bs':relation(B, cascade="all, delete-orphan") }) b = B() sess.save(b) sess.flush() versus here: a = A() b = B() sess.save(a) a.bs.append(b) # does sess.save(b) due to cascade rule a.bs.remove(b) sess.flush() no error in either case ? or just case #1 ? (or a warning in one/ both cases) ? if only an error in case #1, can you see why I'm uncomfortable with it ? or do list "remove" operations now cascade as "expunge" operations...and is that a surprise behavior ... --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---