Skip to content

Commit 340acf8

Browse files
committed
[DoctrineBridge] Add new DayPointType and TimePointType Doctrine types
1 parent 32ee550 commit 340acf8

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

components/clock.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,17 @@ If you :doc:`use Doctrine </doctrine>` to work with databases, consider using th
297297

298298
The ``DatePointType`` was introduced in Symfony 7.3.
299299

300+
.. tip::
301+
302+
Use the ``'day_point'`` and ``'time_point'`` types, and the
303+
:class:`Symfony\\Component\\Clock\\DatePoint` class when the property stores
304+
only a date or a time instead of a full datetime.
305+
306+
.. versionadded:: 7.4
307+
308+
The ``'day_point'`` and ``'time_point'`` types and the ``DatePoint`` class
309+
was introduced in Symfony 7.4.
310+
300311
.. _clock_writing-tests:
301312

302313
Writing Time-Sensitive Tests

0 commit comments

Comments
 (0)