On Mar 17, 7:23 pm, Tomasz Ignatiuk <[email protected]> wrote:
> Hi
>
> I have a module called Documents. In this modul I use few kinds of
> documents. They use the same table in db but different fields. So that
> I created few Forms for them.
>
> I overridden executeNew() in order to call proper form class. And it
> works well. Proper form object is created, template displayed,
> document saved.
>
> I overridden executeEdit() in order to call proper form class. And it
> works well. Proper form object is created, template displayed with
> data. But after saving Symfony still uses the DocumentForm class
> instead of for example DocumentMyVerForm class. I overriden
> executeUpdate action in order to use proper form class but it still
> uses main DocumentForm. Any ideas how to set it up?

Can we see what the code is for your update method? Are you sure you
are explicitly calling your new child class in the update method?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" 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/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to