Symfony2 Entity Timestamps With Doctrine

1. Add line to entity annotation: 2. Add new columns for created and modified: 3. Now tell doctrine that before persisting or updating, call updatedTimestamps() http://www.jamesmandrews.com/2012/10/31/symfony-2-entity-timestamps-with-doctrine/

Go Top