Permalink
Browse files

Fix yaml example

  • Loading branch information...
FabioBatSilva committed Feb 2, 2013
1 parent 7764ed9 commit c5aecd43c860f6262912824cf8184ebceccb309a
Showing with 10 additions and 9 deletions.
  1. +10 −9 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]
# ....

0 comments on commit c5aecd4

Please sign in to comment.