[symfony-users] How to force the Doctrine behaviour Timestampable values in a main table when embedded data are updated

2010-01-25 Thread Olivier LOYNET
Hi, I've two tables : - Profile table - Organism table with an embedded relation (1,1) The Profile table have Timestampable behaviour like this schema : Profile: tableName: profile actAs: Timestampable: ~ columns: id: type: integer(4) primary: true

Re: [symfony-users] How to force the Doctrine behaviour Timestampable values in a main table when embedded data are updated

2010-01-25 Thread FlyLM [ML]
2010/1/25 Olivier LOYNET olivierloy...@gmail.com: Hi, I've two tables :  - Profile table  - Organism table with an embedded relation (1,1) The Profile table have Timestampable behaviour like this schema : Profile:  tableName: profile  actAs:    Timestampable:   ~  columns:    id:    

Re: [symfony-users] How to force the Doctrine behaviour Timestampable values in a main table when embedded data are updated

2010-01-25 Thread FlyLM [ML]
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

RE: [symfony-users] How to force the Doctrine behaviour Timestampable values in a main table when embedded data are updated

2010-01-25 Thread Olivier LOYNET
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