Automatic Dates
Use HasLifecycleCallbacks to automatically set createdAt or updatedAt values when an entity is saved.
Symfony 0 to Hero: The Complete 2026 Guide
Use HasLifecycleCallbacks to automatically set createdAt or updatedAt values when an entity is saved.