Skip to content

Commit

Permalink
minor #18457 [Doctrine] Deprecate Doctrine lifecycle subscribers (jav…
Browse files Browse the repository at this point in the history
…iereguiluz)

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
  • Loading branch information
javiereguiluz committed Jul 6, 2023
2 parents 9b6a012 + 77769de commit a47bb9d
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 a47bb9d

Please sign in to comment.