[sqlalchemy] Re: cascade="all, delete-orphan" => FlushError, instance is an unsaved, pending instance and is an orphan

2007-06-28 Thread znerol
On 28 Jun., 15:27, svilen <[EMAIL PROTECTED]> wrote: > why do u clearmappers then redefine them (same oe not)? > without this part the script works. because i'm stupid. thanks! now i have to figure out the difference to my own case... --~--~-~--~~~---~--~~ You

[sqlalchemy] cascade="all, delete-orphan" => FlushError, instance is an unsaved, pending instance and is an orphan

2007-06-28 Thread znerol
Hi All Yes, i know, there is a FAQ-entry and i realized that this issue was discussed before. Regretably i'm not able to make things work with a one-to-many relationship using cascade="all, delete-orphan". Now i discovered that even the example from the documentation raises this exception (1). I'