This bundle for Symfony will allows you to automatically handle creation and update date of Doctrine entity properties.
You need to install the bundle with :
composer require mof/timestampable-bundle
.
Then you ready to go, read the Usage documentation of the Timestampable library to know how to set the handler of your entity properties : https://github.com/RyanFarrah67/Timestampable#usage.