Skip to content

Commit

Permalink
[Doctrine] Deprecate Doctrine lifecycle subscribers
Browse files Browse the repository at this point in the history
  • Loading branch information
javiereguiluz committed Jul 6, 2023
1 parent 88b640c commit 77769de
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions doctrine/events.rst
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,11 @@ define a callback for the ``prePersist`` Doctrine event:
Doctrine Lifecycle Listeners
----------------------------

.. deprecated:: 6.3

Lifecycle subscribers are deprecated starting from Symfony 6.3 and will be
removed in Symfony 7.0. Use lifecycle listeners instead.

Lifecycle listeners are defined as PHP classes that listen to a single Doctrine
event on all the application entities. For example, suppose that you want to
update some search index whenever a new entity is persisted in the database. To
Expand Down

0 comments on commit 77769de

Please sign in to comment.