Posts Tagged ‘timestampable behavior’
Symfony 1.4 – Doctrine Timestampable Behaviour
February 13th, 2010 / 13 Comments » / by Faizan
Recently Symfony released their LTS 1.4 branch. Unlike previous versions Symfony 1.4 comes with Doctrine as default ORM. If you have worked with Doctrine’s you will be familiar with its Timestampable behavior.
actAs: Timestampable: ~
Timestampable behavior automatically adds a created_at and updated_at column and automatically set the values when a record is inserted and updated. I mostly use Symfony Admin Generator to generate Backend. This behavior worked fined till Symfony 1.2, but in Symfony 1.3 / 1.4 for unknown reasons this behavior adds created_at and updated_at fields as required and their value must be filled during creation of new record in admin generator.
Recent Comments