Skip to content

Commit a4476ce

Browse files
committed
minor #12328 Reworded the docs about Doctrine events (javiereguiluz)
This PR was squashed before being merged into the 4.3 branch (closes #12328). Discussion ---------- Reworded the docs about Doctrine events Commits ------- 31940c5 Reworded the docs about Doctrine events
2 parents 2957372 + 31940c5 commit a4476ce

File tree

8 files changed

+453
-376
lines changed

8 files changed

+453
-376
lines changed

_build/redirection_map

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -457,3 +457,5 @@
457457
/templating/embedding_controllers /templates
458458
/templating/inheritance /templates
459459
/testing/doctrine /testing/database
460+
/doctrine/lifecycle_callbacks /doctrine/events
461+
/doctrine/event_listeners_subscribers /doctrine/events

controller/upload_file.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -353,9 +353,8 @@ Using a Doctrine Listener
353353
-------------------------
354354

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

360359
Moreover, Doctrine listeners are often dependent on internal Doctrine behavior
361360
which may change in future versions. Also, they can introduce performance issues

doctrine.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -812,8 +812,7 @@ Learn more
812812

813813
doctrine/associations
814814
doctrine/common_extensions
815-
doctrine/lifecycle_callbacks
816-
doctrine/event_listeners_subscribers
815+
doctrine/events
817816
doctrine/registration_form
818817
doctrine/custom_dql_functions
819818
doctrine/dbal

doctrine/common_extensions.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ functionality for `Sluggable`_, `Translatable`_, `Timestampable`_, `Loggable`_,
1414
The usage for each of these extensions is explained in that repository.
1515

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

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

doctrine/event_listeners_subscribers.rst

Lines changed: 0 additions & 267 deletions
This file was deleted.

0 commit comments

Comments
 (0)