8000 Minor fixes in the Doctrine listeners article by javiereguiluz · Pull Request #10891 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

Minor fixes in the Doctrine listeners article #10891

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
Jan 17, 2019
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
Minor fixes in the Doctrine listeners article
  • Loading branch information
javiereguiluz committed Jan 16, 2019
commit c9e6a7d7691b9b91103b3377dae4f02dc9204d00
8 changes: 4 additions & 4 deletions doctrine/event_listeners_subscribers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ entity), you should check for the entity's class type in your method

In Doctrine 2.4, a feature called Entity Listeners was introduced.
It is a lifecycle listener class used for an entity. You can read
about it in `the Doctrine Documentation`_.
about it in `the DoctrineBundle documentation`_.

Creating the Subscriber Class
-----------------------------
Expand Down Expand Up @@ -241,9 +241,6 @@ to the tag like so:
  Marking an event listener as ``lazy`` has nothing to do with lazy service
definitions which are described :doc:`in their own article </service_container/lazy_services>`

.. _`The Event System`: http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/events.html
.. _`the Doctrine Documentation`: https://symfony.com/doc/current/bundles/DoctrineBundle/entity-listeners.html

Priorities for Event Listeners
------------------------------

Expand Down Expand Up @@ -297,3 +294,6 @@ numbers mean that listeners are invoked earlier.
->register('my.listener.with_low_priority', MyLowPriorityListener::class)
->addTag('doctrine.event_listener', ['event' => 'postPersist', 'priority' => 1])
;

.. _`The Event System`: http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/events.html
.. _`the DoctrineBundle documentation`: https://symfony.com/doc/current/bundles/DoctrineBundle/entity-listeners.html
0