diff --git a/lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php b/lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php index 7bc0c0beb..328d7bc35 100644 --- a/lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php +++ b/lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php @@ -777,11 +777,12 @@ class ClassMetadataInfo implements ClassMetadata { $this->reflClass = $reflService->getClass($this->name); $this->namespace = $reflService->getClassNamespace($this->name); - $this->table['name'] = $this->namingStrategy->classToTableName($this->name); if ($this->reflClass) { $this->name = $this->rootEntityName = $this->reflClass->getName(); } + + $this->table['name'] = $this->namingStrategy->classToTableName($this->name); } /**