From 781a661704c904598afcdad57971fc3b8df8d068 Mon Sep 17 00:00:00 2001 From: "Fabio B. Silva" Date: Tue, 3 Jan 2012 17:58:20 -0200 Subject: [PATCH] change naming position --- lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); } /**