Browse files

minor #3532 Added tip for Entity Listeners (slavafomin)

This PR was merged into the 2.4 branch.


Added tip for Entity Listeners


65649aa Update event_listeners_subscribers.rst
b53e178 Fixed typo
b97e79c Added tip for Entity Listeners
  • Loading branch information...
weaverryan committed Feb 11, 2014
2 parents c483ac6 + 65649aa commit dce2e23b4407bb7c468ba2d970981a97b4801d34
Showing with 7 additions and 0 deletions.
  1. +7 −0 cookbook/doctrine/event_listeners_subscribers.rst
@@ -154,6 +154,12 @@ specific type of entity (e.g. a ``Product`` entity but not a ``BlogPost``
entity), you should check for the entity's class type in your method
(as shown above).
.. tip::
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`_.
Creating the Subscriber Class
@@ -211,3 +217,4 @@ interface and have an event method for each event it subscribes to::
For a full reference, see chapter `The Event System`_ in the Doctrine documentation.
.. _`The Event System`:
.. _`the Doctrine Documentation`:

0 comments on commit dce2e23

Please sign in to comment.