From 8fc7eb295bf7b6e776ec5510133064687c9fbf88 Mon Sep 17 00:00:00 2001 From: Ivar Nesje Date: Sat, 22 Jan 2011 19:42:48 +0800 Subject: [PATCH] Fixed lifecycleCallbacks documentation bug when using YAML mapping --- en/reference/events.rst | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/en/reference/events.rst b/en/reference/events.rst index 836980d41..0a0f760e1 100644 --- a/en/reference/events.rst +++ b/en/reference/events.rst @@ -275,9 +275,9 @@ can do it with the following. # ... name: type: string(50) - lifecycleCallbacks: - doStuffOnPrePersist: prePersist - doStuffOnPostPersist: postPersist + lifecycleCallbacks: + prePersist: [ doStuffOnPrePersist, doOtherStuffOnPrePersistToo ] + postPersist: [ doStuffOnPostPersist ] XML would look something like this: