Skip to content

Commit 981c09c

Browse files
committed
Merge branch '6.3' into 6.4
* 6.3: [Doctrine] Deprecate Doctrine lifecycle subscribers [Form] Deprecate not setting a value for widget option of date/time types
2 parents eb4fa85 + 4bf5dc2 commit 981c09c

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

doctrine/events.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,11 @@ define a callback for the ``prePersist`` Doctrine event:
110110
Doctrine Lifecycle Listeners
111111
----------------------------
112112

113+
.. deprecated:: 6.3
114+
115+
Lifecycle subscribers are deprecated starting from Symfony 6.3 and will be
116+
removed in Symfony 7.0. Use lifecycle listeners instead.
117+
113118
Lifecycle listeners are defined as PHP classes that listen to a single Doctrine
114119
event on all the application entities. For example, suppose that you want to
115120
update some search index whenever a new entity is persisted in the database. To

reference/forms/types/options/date_widget_description.rst.inc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,8 @@ following:
1010

1111
* ``single_text``: renders a single input of type ``date``. User's input
1212
is validated based on the `format`_ option.
13+
14+
.. deprecated:: 6.3
15+
16+
Not setting a value explicitly for this option is deprecated since Symfony 6.3
17+
because the default value will change to ``single_text`` in Symfony 7.0.

0 commit comments

Comments
 (0)