Skip to content

Reworded the docs about Doctrine events #12328

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
Sep 22, 2019
Merged
Show file tree
Hide file tree
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
2 changes: 2 additions & 0 deletions _build/redirection_map
Original file line number Diff line number Diff line change
Expand Up @@ -457,3 +457,5 @@
/templating/embedding_controllers /templates
/templating/inheritance /templates
/testing/doctrine /testing/database
/doctrine/lifecycle_callbacks /doctrine/events
/doctrine/event_listeners_subscribers /doctrine/events
5 changes: 2 additions & 3 deletions controller/upload_file.rst
Original file line number Diff line number Diff line change
Expand Up @@ -353,9 +353,8 @@ Using a Doctrine Listener
-------------------------

The previous versions of this article explained how to handle file uploads using
:doc:`Doctrine listeners </doctrine/event_listeners_subscribers>`. However, this
is no longer recommended, because Doctrine events shouldn't be used for your
domain logic.
:ref:`Doctrine listeners <doctrine-lifecycle-listener>`. However, this is no longer
recommended, because Doctrine events shouldn't be used for your domain logic.

Moreover, Doctrine listeners are often dependent on internal Doctrine behavior
which may change in future versions. Also, they can introduce performance issues
Expand Down
3 changes: 1 addition & 2 deletions doctrine.rst
Original file line number Diff line number Diff line change
Expand Up @@ -812,8 +812,7 @@ Learn more

doctrine/associations
doctrine/common_extensions
doctrine/lifecycle_callbacks
doctrine/event_listeners_subscribers
doctrine/events
doctrine/registration_form
doctrine/custom_dql_functions
doctrine/dbal
Expand Down
3 changes: 1 addition & 2 deletions doctrine/common_extensions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ functionality for `Sluggable`_, `Translatable`_, `Timestampable`_, `Loggable`_,
The usage for each of these extensions is explained in that repository.

However, to install/activate each extension you must register and activate an
:doc:`Event Listener </doctrine/event_listeners_subscribers>`.
To do this, you have two options:
:ref:`Doctrine event Listener <doctrine-lifecycle-listener>`. To do this, you have two options:

#. Use the `StofDoctrineExtensionsBundle`_, which integrates the above library.

Expand Down
267 changes: 0 additions & 267 deletions doctrine/event_listeners_subscribers.rst

This file was deleted.

Loading