I have a strange situation. If someone _really_ needs to know why I
could explain.

When an object gets deleted by SQLAlchemy, it's related objects are
getting updated setting their foreign keys referring to the deleted
items to NULL. But what if I don't want that to happen? Viewonly is
not an option here, as I need to be able to make changes.

Example

Moment x: Creating item

<Item id=3 name='test'>

Moment x+1: Creating note

<Item id=3 name='test'>
<Note id=9 id_item=3>

Moment x+2: Deleting item

<Note id=9 id_item=None>

But I want it still to be:

<Note id=9 id_item=3>


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

Reply via email to