diff --git a/lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php b/lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php index d1f13f002..a6100856c 100644 --- a/lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php +++ b/lib/Doctrine/ORM/Mapping/ClassMetadataInfo.php @@ -395,7 +395,7 @@ class ClassMetadataInfo public function getReflectionClass() { if ( ! $this->reflClass) { - $this->reflClass = new ReflectionClass($entityName); + $this->reflClass = new ReflectionClass($this->name); } return $this->reflClass; }