Unforntately, I haven't used Doctrine.  Sorry.

On Jul 9, 10:22 am, Rene <r...@pc-dummy.net> wrote:
> Hi Steve,
>
> Do you known a way to do that with doctrine integrated tools?
> Currently i use my "getModified()" way ...
>
> Thank you,
> Rene Jochum
>
> Steve the Canuck schrieb:
>
>
>
> > The best way to do this is create an audit table and write a simple
> > trigger to insert records on each change
>
> > If you want to do it programmatically you can create a behavior.
>
> > Steve
> > On Jul 9, 9:14 am, Tom Haskins-Vaughan <t...@templestreetmedia.com>
> > wrote:
> >> sf1.2 doctrine
>
> >> Hi,
>
> >> I'm trying to create a change log for a table and I was wondering if
> >> there was a way to get the values of a record before they were modified
> >> so that I could add them to the log:
>
> >> in the save method:
>
> >> $log = new Log()
>
> >> $log->old_value = $this->getOldValue();
> >> $log->new_value = $this->value;
>
> >> $log->save();
>
> >> Any ideas?
>
> >> Thanks.
>
> >> Tom
--~--~---------~--~----~------------~-------~--~----~
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