On Aug 4, 2007, at 1:07 PM, Leonid Morgun wrote:

>
> I tried to use http://www.sqlalchemy.org/docs/ 
> adv_datamapping.html#advdatamapping_inheritance_joined
> -- Joined Table Inheritance.
>
> And according to that example in documentation, I need to "add a new
> worker": at the beginning I had a simple employee (and the record in
> employees' table). Than I want to make that person an engineer (for
> example) -- with a necessary record in engineers' table.
>
> How can I do this?

changing the class of an existing persisted item is ticket #648 in  
trac.  as a workarond now, you have two options:  fully delete the  
old item and replace with a new one, or, issue direct SQL the  
database in order to make the change, then reload the new Engineer  
object from your Session.





--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to [email protected]
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