Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a47bb9d

Browse files
committed
minor #18457 [Doctrine] Deprecate Doctrine lifecycle subscribers (javiereguiluz)
This PR was squashed before being merged into the 6.3 branch. Discussion ---------- [Doctrine] Deprecate Doctrine lifecycle subscribers Related to symfony/symfony#49918 and doctrine/DoctrineBundle#1664 Commits ------- 77769de [Doctrine] Deprecate Doctrine lifecycle subscribers
2 parents 9b6a012 + 77769de commit a47bb9d

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)