title: How to set created and updated date in symfony2?
body: <p>I am creating a todo app where the user can create tasks.The user has the options of inserting title, due date, completed. I want to be able to insert created and updated date automatically when the user creates the task.</p>