File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -154,6 +154,12 @@ specific type of entity (e.g. a ``Product`` entity but not a ``BlogPost``
154
154
entity), you should check for the entity's class type in your method
155
155
(as shown above).
156
156
157
+ .. tip ::
158
+
159
+ Starting from version 2.4 Doctrine has a feature called `Entity Listeners `_
160
+ which is a lifecycle listener class used for an entity. You can read about
161
+ it in Doctrine documentation.
162
+
157
163
Creating the Subscriber Class
158
164
-----------------------------
159
165
@@ -211,3 +217,4 @@ interface and have an event method for each event it subscribes to::
211
217
For a full reference, see chapter `The Event System `_ in the Doctrine documentation.
212
218
213
219
.. _`The Event System` : http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/events.html
220
+ .. _`Entity Listeners` : http://docs.doctrine-project.org/projects/doctrine-orm/en/latest/reference/events.html#entity-listeners
You can’t perform that action at this time.
0 commit comments