Doctrine Timestampable behaviour use class
Doctrine_Template_Listener_Timestampable. This class use the preUpdate
and preInsert methods for changing the insert_at and update_at
columns.

So maybe better to use preUpdate than postUpdate for this purpose.


On 25 led, 15:11, "Olivier LOYNET" <olivierloy...@gmail.com> wrote:
> I'm not very experimented with events usages.
> I'll try it soon the "postUpdate" event.
>
> Thanks for your fast reply.
>
> Olivier
>
>
>
> > -----Message d'origine-----
> > De : symfony-users@googlegroups.com [mailto:symfony-
> > us...@googlegroups.com] De la part de FlyLM [ML]
> > Envoyé : lundi 25 janvier 2010 15:03
> > À : symfony-users@googlegroups.com
> > Objet : Re: [symfony-users] How to force the Doctrine behaviour
> > Timestampable values in a main table when embedded data are updated
>
> > > Hi,
>
> > > Perhaps it's not the best method, but you can use the method
> > > "postUpdate" of the Doctrine model class of "Organism" to update the
> > > "Profile".
>
> > Just the opposite in ur case, use the "postUpdate" method of the
> > "Profile" model class to update "Organism".
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "symfony users" group.
> > To post to this group, send email to symfony-us...@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.

-- 
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-us...@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