Re: [symfony-users] Set value of a database field depending of another field

2010-07-29 Thread Gustavo Adrian
No, but you can do it on the model, on the preSave method (on your model inheriting Doctrine_Record class) On Thu, Jul 29, 2010 at 10:50 AM, Jérémie wrote: > Hi all, > > Let me explain: > > I have a field "isPublished" in my table, and another "publicationDate". > When "isPublished" is updated f

[symfony-users] Set value of a database field depending of another field

2010-07-29 Thread Jérémie
Hi all, Let me explain: I have a field "isPublished" in my table, and another "publicationDate". When "isPublished" is updated from "0" to "1", I'd like to update "publicationDate" with the current date & time. Is there a way to specify this in the schema.yml file? Thanks a lot Jérémie -- If