[sqlalchemy] Re: Changing the type/class of an object using polymorphic tables in ORM

2007-12-22 Thread andresj
Thanks, I will use the approach you describe here when I get to that point in the development proccess :). > So for now, your best bet is to issue the SQL directly to the database > for the particular class change you want to do, remove the objects in > question from the session using expunge(),

[sqlalchemy] Re: Changing the type/class of an object using polymorphic tables in ORM

2007-12-22 Thread Michael Bayer
On Dec 22, 2007, at 3:27 PM, andresj wrote: > > I don't know if I'm too clear, but I'll try to explain it. I'm using a > set up similar to the one in > http://www.sqlalchemy.org/docs/04/mappers.html#advdatamapping_mapper_inheritance_joined > . I want to be able to change the type of an object. F