I want to make fields updated_at and created_at in my Doctrine entities to update automatically.
updated_at
created_at
In Ruby on Rails models there
I would suggest using timestampable trait
https://symfonycasts.com/screencast/symfony4-doctrine/timestampable
use Gedmo\Timestampable\Traits\TimestampableEntity; class Article { use TimestampableEntity; }
will add all appropriate functionality automatically