andanteproject/timestampable-bundle
Symfony bundle for Doctrine entities that automatically manages createdAt and updatedAt with DateTimeImmutable. Zero config to start, customizable, uses Symfony Clock, no attributes needed, and won’t overwrite timestamps you set manually. Compatible with Symfony 5–8, PHP 8.2.
Full Changelog: https://github.com/andanteproject/timestampable-bundle/compare/3.1.0...3.1.1
This release adds Symfony 8 support, an optional metadata cache warmer, and a refactored internal metadata structure for timestampable entities. Existing applications using interfaces and configuration remain fully supported; no breaking changes.
Symfony 8 support
The bundle is compatible with Symfony ^5.0 | ^6.0 | ^7.0 | ^8.0 and Symfony Clock ^6.2 | ^7.0 | ^8.0. CI runs against Symfony 8.0 and Doctrine ORM 3.5 for Symfony 8 compatibility.
Optional metadata cache warmer
Timestampable metadata can be warmed at container build time so the first request does not build it on the fly.
andante_timestampable.metadata_cache_warmer_enabled (default: false). Set to true to enable the warmer. It's suggested to use it in prod environments.Update the bundle to this version.
(Optional) Enable metadata cache warmer for prod environments:
andante_timestampable:
metadata_cache_warmer_enabled: true
Built with ❤️ by the Andante Project team.
Symfony Clock 7
Support Symfony 7
Library does not override your createdAt and updatedAt values when you set them explicitly
Thanks to @danielesteve-cibervoluntarios!
Fix support for Doctrine Bundle 2.3
How can I help you explore Laravel packages today?