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

Skip to content

[Doctrine] Deprecate Doctrine lifecycle subscribers #18457

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 6, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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