Yes Symfony 1.2 (as in topic)
OK, thank you, I think this will be the best solution.

On Jan 21, 8:29 pm, David Brewer <david.bre...@gmail.com> wrote:
> Is this symfony 1.2?  If so, you can customize the form for your model
> to handle this.
>
> In the configure method for your form, you can add widgets and
> validators for the address-related fields.  Then, you can override the
> 'doSave()' method to do custom handling of your extra fields.  You'll
> also need to create getters on the Company model that pass through to
> the appropriate version of the Address model in order to populate the
> values on the form.
>
> On Wed, Jan 21, 2009 at 11:19 AM, jukea <jkea...@gmail.com> wrote:
>
> > You could also use the versionable template if you use doctrine (mabe
> > there's the equivalent for propel, like actAsVersionable or
> > something), which automatially keeps a copy of older versions of the
> > model records when you edit them.
>
> > I think that could be a better solution.
>
> > Or maybe you could copy the data directly into the invoice ?
>
> > Julien
>
> > On Jan 21, 1:35 pm, Tomasz Ignatiuk <tomek.ignat...@gmail.com> wrote:
> >> Hi,
> >> I have this situations. Two related tables: Company and Company
> >> Address
> >> The idea is to add Company info to Company table and address info
> >> which will be kept in Company Address table. When I change address
> >> info, it will be saved as a new record in Company Address. Because for
> >> example when I look at the Invoice from 1 year ago it will check what
> >> was address etc one year ago (which can be different now) SO the Idea
> >> is to track changeses made in Address table.
>
> >> My question is: what is the best way to put Company Address fields
> >> into NEW and EDIT in Company module, all generate by admin generator?
> >> My idea was to add partial fields and to change actions of Company
> >> Address module in order to save data as new record each time if
> >> something was changed in it.
>
> >> Do you think there is a better solution?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to