@@ -272,8 +272,7 @@ with the ``doctrine.orm.entity_listener`` tag:
272272 entity_manager : ' custom'
273273
274274 # 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
277276 method : ' checkUserChanges'
278277
279278 .. code-block :: xml
@@ -292,8 +291,7 @@ with the ``doctrine.orm.entity_listener`` tag:
292291 * 'entity_manager': define it if the listener is not associated to the
293292 * default entity manager
294293 * '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
297295 -->
298296 <tag name =" doctrine.orm.entity_listener"
299297 event =" postUpdate"
@@ -323,9 +321,8 @@ with the ``doctrine.orm.entity_listener`` tag:
323321 // you can also associate an entity listener to a specific entity manager
324322 'entity_manager' => 'custom',
325323
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
329326 'method' => 'checkUserChanges',
330327 ])
331328 ;
0 commit comments