Skip to content

Commit

Permalink
minor #3532 Added tip for Entity Listeners (slavafomin)
Browse files Browse the repository at this point in the history
This PR was merged into the 2.4 branch.

Discussion
----------

Added tip for Entity Listeners

Commits
-------

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 dce2e23
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cookbook/doctrine/event_listeners_subscribers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
-----------------------------

Expand Down Expand Up @@ -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`: http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/events.html
.. _`the Doctrine Documentation`: http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/events.html#entity-listeners

0 comments on commit dce2e23

Please sign in to comment.