Try running an update query against that row. It should be possible to change type that way.
On 28 Wrz, 17:31, Gustavo Adrian <comfortablynum...@gmail.com> wrote: > Hi there, > > Is there a way to change an object's type programatically? I mean, I have > the "type" field on my form so I can change the type of the object. When > it's a new object there's no problem but when I try to edit one, let's say a > "Section" object, and I want to change it to a "Category" object, it doesn't > change. The problem I guess is that, when I look for the object using the > generic table (let's say "GenericElement") from which Section and Category > inherits from, it returns a "Section" object. If I try to save it changing > the "type" field to "Category", it saves itself with the "Section" type > value instead. > > Is there a way to do what I want? maybe retrieving the object as the > "generic" type from which Section and Category inherit from? but I don't > know how to do this (or even if it's possible). > > Thanks in advance. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en