diff --git a/lib/Doctrine/ORM/Tools/EntityGenerator.php b/lib/Doctrine/ORM/Tools/EntityGenerator.php index 550cc5a3a..f5fa4b1aa 100644 --- a/lib/Doctrine/ORM/Tools/EntityGenerator.php +++ b/lib/Doctrine/ORM/Tools/EntityGenerator.php @@ -672,7 +672,7 @@ public function __construct() { $lines = array(); $lines[] = '/**'; - $lines[] = ' * '.$metadata->name; + $lines[] = ' * ' . $this->getClassName($metadata); if ($this->generateAnnotations) { $lines[] = ' *'; @@ -1126,7 +1126,7 @@ public function __construct() { $lines = array(); $lines[] = $this->spaces . '/**'; - $lines[] = $this->spaces . ' * @var ' . $this->getType($fieldMapping['type']) . ' $' . $fieldMapping['fieldName']; + $lines[] = $this->spaces . ' * @var ' . $this->getType($fieldMapping['type']); if ($this->generateAnnotations) { $lines[] = $this->spaces . ' *';