Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitdce2e23

Browse files
committed
minorsymfony#3532 Added tip for Entity Listeners (slavafomin)
This PR was merged into the 2.4 branch.Discussion----------Added tip for Entity ListenersCommits-------65649aa Update event_listeners_subscribers.rstb53e178 Fixed typob97e79c Added tip for Entity Listeners
2 parentsc483ac6 +65649aa commitdce2e23

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

‎cookbook/doctrine/event_listeners_subscribers.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,12 @@ specific type of entity (e.g. a ``Product`` entity but not a ``BlogPost``
154154
entity), you should check for the entity's class type in your method
155155
(as shown above).
156156

157+
..tip::
158+
159+
In Doctrine 2.4, a feature called Entity Listeners was introduced.
160+
It is a lifecycle listener class used for an entity. You can read
161+
about it in `the Doctrine Documentation`_.
162+
157163
Creating the Subscriber Class
158164
-----------------------------
159165

@@ -211,3 +217,4 @@ interface and have an event method for each event it subscribes to::
211217
For a full reference, see chapter `The Event System`_ in the Doctrine documentation.
212218

213219
.. _`The Event System`:http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/events.html
220+
.. _`the Doctrine Documentation`:http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/events.html#entity-listeners

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp