Skip to content

Commit b523dc0

Browse files
committed
[Doctrine] Fixed bad method name for example
1 parent a69fa6a commit b523dc0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doctrine/events.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ define a listener for the ``postUpdate`` Doctrine event::
239239
{
240240
// the entity listener methods receive two arguments:
241241
// the entity instance and the lifecycle event
242-
public function postUpdate(User $user, LifecycleEventArgs $event)
242+
public function checkUserChanges(User $user, LifecycleEventArgs $event)
243243
{
244244
// ... do something to notify the changes
245245
}

0 commit comments

Comments
 (0)