@@ -272,8 +272,7 @@ with the ``doctrine.orm.entity_listener`` tag:
272
272
entity_manager : ' custom'
273
273
274
274
# by default, Symfony looks for a method called after the event (e.g. postUpdate())
275
- # if it doesn't exist, it tries to execute the '__invoke()' method, but you can
276
- # configure a custom method name with the 'method' option
275
+ # but you can configure a custom method name with the 'method' option
277
276
method : ' checkUserChanges'
278
277
279
278
.. code-block :: xml
@@ -292,8 +291,7 @@ with the ``doctrine.orm.entity_listener`` tag:
292
291
* 'entity_manager': define it if the listener is not associated to the
293
292
* default entity manager
294
293
* 'method': by default, Symfony looks for a method called after the event (e.g. postUpdate())
295
- * if it doesn't exist, it tries to execute the '__invoke()' method, but
296
- * you can configure a custom method name with the 'method' option
294
+ * but you can configure a custom method name with the 'method' option
297
295
-->
298
296
<tag name =" doctrine.orm.entity_listener"
299
297
event =" postUpdate"
@@ -323,9 +321,8 @@ with the ``doctrine.orm.entity_listener`` tag:
323
321
// you can also associate an entity listener to a specific entity manager
324
322
'entity_manager' => 'custom',
325
323
326
- // by default, Symfony looks for a method called after the event (e.g. postUpdate())
327
- // if it doesn't exist, it tries to execute the '__invoke()' method, but you can
328
- // configure a custom method name with the 'method' option
324
+ // by default, Symfony looks for a method called after the event (e.g. postUpdate()),
325
+ // but you can configure a custom method name with the 'method' option
329
326
'method' => 'checkUserChanges',
330
327
])
331
328
;
0 commit comments