From 8d0f49f2273579984a7b831d14b33afb1f94cb42 Mon Sep 17 00:00:00 2001 From: Christophe Coevoet Date: Fri, 6 Jul 2012 22:18:06 +0200 Subject: [PATCH] Updated the classmetadata factory for Common 2.3 This adds the new method introduced in doctrine/common#162 --- lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php b/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php index 9e081d43e..f79eda8b9 100644 --- a/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php +++ b/lib/Doctrine/ORM/Mapping/ClassMetadataFactory.php @@ -526,4 +526,12 @@ class ClassMetadataFactory extends AbstractClassMetadataFactory { return $this->driver; } + + /** + * {@inheritDoc} + */ + protected function isEntity(ClassMetadataInterface $class) + { + return isset($class->isMappedSuperclass) && $class->isMappedSuperclass === false; + } }