demo
demo copied to clipboard
Using Doctrine LifecycleCallbacks
This is the modern solution to automatically update timestamps in Doctrine. I have added createdAt
and updatedAt
to all entities using LifecycleCallbacks.