Skip to content
Browse files

[mapping] entity generator issue, should close #276

  • Loading branch information...
1 parent 3b2e2dc commit 9e80cd5298d311c77c46827d32cff9eb3903861d @l3pp4rd l3pp4rd committed with stof Mar 7, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Gedmo/Mapping/ExtensionMetadataFactory.php
View
4 lib/Gedmo/Mapping/ExtensionMetadataFactory.php
@@ -76,7 +76,7 @@ public function getExtensionMetadata($meta)
$cmf = $this->objectManager->getMetadataFactory();
$useObjectName = $meta->name;
// collect metadata from inherited classes
- if (!$cmf instanceof DisconnectedClassMetadataFactory) {
+ if (null !== $meta->reflClass) {
foreach (array_reverse(class_parents($meta->name)) as $parentClass) {
// read only inherited mapped classes
if ($cmf->hasMetadataFor($parentClass)) {
@@ -159,4 +159,4 @@ private function getDriver($omDriver)
}
return $driver;
}
-}
+}

0 comments on commit 9e80cd5

Please sign in to comment.
Something went wrong with that request. Please try again.