From 340acf8a5f6d57460247ec230ab4b6a1f1bc3ac3 Mon Sep 17 00:00:00 2001 From: Javier Eguiluz Date: Thu, 25 Sep 2025 16:46:37 +0200 Subject: [PATCH] [DoctrineBridge] Add new DayPointType and TimePointType Doctrine types --- components/clock.rst | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/components/clock.rst b/components/clock.rst index c4ac88e9092..992420edcb1 100644 --- a/components/clock.rst +++ b/components/clock.rst @@ -297,6 +297,17 @@ If you :doc:`use Doctrine ` to work with databases, consider using th The ``DatePointType`` was introduced in Symfony 7.3. +.. tip:: + + Use the ``'day_point'`` and ``'time_point'`` types, and the + :class:`Symfony\\Component\\Clock\\DatePoint` class when the property stores + only a date or a time instead of a full datetime. + + .. versionadded:: 7.4 + + The ``'day_point'`` and ``'time_point'`` types and the ``DatePoint`` class + was introduced in Symfony 7.4. + .. _clock_writing-tests: Writing Time-Sensitive Tests