From db31c5810209de5c381a8b4cfe0767832f5f9726 Mon Sep 17 00:00:00 2001 From: Geoffrey Wagner Date: Wed, 8 Jan 2014 17:17:47 -0600 Subject: [PATCH] Fix Lifecycle Callbacks Remove a bit of code that breaks lifecycle callbacks of parent MappedSuperclasses --- lib/Doctrine/ORM/Mapping/Driver/AnnotationDriver.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/Doctrine/ORM/Mapping/Driver/AnnotationDriver.php b/lib/Doctrine/ORM/Mapping/Driver/AnnotationDriver.php index a0f99ad9b..e35921130 100644 --- a/lib/Doctrine/ORM/Mapping/Driver/AnnotationDriver.php +++ b/lib/Doctrine/ORM/Mapping/Driver/AnnotationDriver.php @@ -469,10 +469,6 @@ class AnnotationDriver extends AbstractAnnotationDriver if (isset($classAnnotations['Doctrine\ORM\Mapping\HasLifecycleCallbacks'])) { /* @var $method \ReflectionMethod */ foreach ($class->getMethods(\ReflectionMethod::IS_PUBLIC) as $method) { - // filter for the declaring class only, callbacks from parents will already be registered. - if ($method->getDeclaringClass()->name !== $class->name) { - continue; - } foreach ($this->getMethodCallbacks($method) as $value) { $metadata->addLifecycleCallback($value[0], $value[1]);