From c5aecd43c860f6262912824cf8184ebceccb309a Mon Sep 17 00:00:00 2001 From: "Fabio B. Silva" Date: Sat, 2 Feb 2013 16:19:35 -0200 Subject: [PATCH] Fix yaml example --- docs/en/reference/events.rst | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/docs/en/reference/events.rst b/docs/en/reference/events.rst index 554e4e1db..d921b42a1 100644 --- a/docs/en/reference/events.rst +++ b/docs/en/reference/events.rst @@ -771,18 +771,19 @@ you should map the listener method using the event type mapping. MyProject\Entity\User: type: entity - UserListener: - preFlush: [preFlushHandler] - postLoad: [postLoadHandler] + entityListeners: + UserListener: + preFlush: [preFlushHandler] + postLoad: [postLoadHandler] - postPersist: [postPersistHandler] - prePersist: [prePersistHandler] + postPersist: [postPersistHandler] + prePersist: [prePersistHandler] - postUpdate: [postUpdateHandler] - preUpdate: [preUpdateHandler] + postUpdate: [postUpdateHandler] + preUpdate: [preUpdateHandler] - postRemove: [postRemoveHandler] - preRemove: [preRemoveHandler] + postRemove: [postRemoveHandler] + preRemove: [preRemoveHandler] # ....