Skip to content

Commit 77769de

Browse files
committed
[Doctrine] Deprecate Doctrine lifecycle subscribers
1 parent 88b640c commit 77769de

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-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

0 commit comments

Comments
 (0)