Skip to content

[Doctrine] Don't mention invokable listeners in 4.3 #12600

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
Nov 9, 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
11 changes: 4 additions & 7 deletions doctrine/events.rst
Original file line number Diff line number Diff line change
Expand Up @@ -272,8 +272,7 @@ with the ``doctrine.orm.entity_listener`` tag:
entity_manager: 'custom'

# by default, Symfony looks for a method called after the event (e.g. postUpdate())
# if it doesn't exist, it tries to execute the '__invoke()' method, but you can
# configure a custom method name with the 'method' option
# but you can configure a custom method name with the 'method' option
method: 'checkUserChanges'

.. code-block:: xml
Expand All @@ -292,8 +291,7 @@ with the ``doctrine.orm.entity_listener`` tag:
* 'entity_manager': define it if the listener is not associated to the
* default entity manager
* 'method': by default, Symfony looks for a method called after the event (e.g. postUpdate())
* if it doesn't exist, it tries to execute the '__invoke()' method, but
* you can configure a custom method name with the 'method' option
* but you can configure a custom method name with the 'method' option
-->
<tag name="doctrine.orm.entity_listener"
event="postUpdate"
Expand Down Expand Up @@ -323,9 +321,8 @@ with the ``doctrine.orm.entity_listener`` tag:
// you can also associate an entity listener to a specific entity manager
'entity_manager' => 'custom',

// by default, Symfony looks for a method called after the event (e.g. postUpdate())
// if it doesn't exist, it tries to execute the '__invoke()' method, but you can
// configure a custom method name with the 'method' option
// by default, Symfony looks for a method called after the event (e.g. postUpdate()),
// but you can configure a custom method name with the 'method' option
'method' => 'checkUserChanges',
])
;
Expand Down