Symfony forms: Is there any way to set default date for created_at and updated_at field
Posted
by sparrow
on Stack Overflow
See other posts from Stack Overflow
or by sparrow
Published on 2010-05-03T19:23:31Z
Indexed on
2010/05/03
19:28 UTC
Read the original article
Hit count: 293
symfony
Hi all, I have a symfony form which have created_at and updated_at field for date. But I want to populate this field with default value and not shown when the form shows. So that, the created_at will hold the current time when inserting new data and updated_at will hold current date when updating any data. Did anyone do something like this? Looking for help on google all the morning but didnt find any. Can anyone help me out there? Pleaseeeeeeee...
© Stack Overflow or respective owner