[sqlalchemy] Re: orphan'ed instance errors

2007-09-14 Thread Anil
BTW, here are my mappers: mapper(User, user_table, properties = { 'location': relation(Location, cascade=all, delete-orphan) }) mapper(Host, host_table, properties = {

[sqlalchemy] Re: orphan'ed instance errors

2007-09-14 Thread jason kirtland
Anil wrote: On Sep 14, 7:36 am, Anil [EMAIL PROTECTED] wrote: class 'sqlalchemy.exceptions.FlushError': instance Location is an unsaved, pending instance and is an orphan (is not attached to any parent 'Host' instance via that classes' 'location' attribute, nor any parent 'User' instance via