Ctreated_at and updated_at in symfony
We need to modify the entity as following /** * @ORM\HasLifecycleCallbacks */ class Distribution ----------------------------------- /** * Gets triggered only on insert * @ORM\PrePersist */ public function onPrePersist() { $this->created_at…