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" <[email protected]> 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 : [email protected] [mailto:symfony- > > [email protected]] De la part de FlyLM [ML] > > Envoyé : lundi 25 janvier 2010 15:03 > > À : [email protected] > > 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 [email protected]. > > To unsubscribe from this group, send email to symfony- > > [email protected]. > > 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 [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.
