Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #498 from lanthaler/improve-generated-entity-doc

Improve DocBlock annotations of generated entities
  • Loading branch information...
commit 515847bece281fe6a04f49b9a65fd10102c44f80 2 parents 409516e + 1b7ca67
@guilhermeblanco guilhermeblanco authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Doctrine/ORM/Tools/EntityGenerator.php
View
4 lib/Doctrine/ORM/Tools/EntityGenerator.php
@@ -672,7 +672,7 @@ private function generateEntityDocBlock(ClassMetadataInfo $metadata)
{
$lines = array();
$lines[] = '/**';
- $lines[] = ' * '.$metadata->name;
+ $lines[] = ' * ' . $this->getClassName($metadata);
if ($this->generateAnnotations) {
$lines[] = ' *';
@@ -1126,7 +1126,7 @@ private function generateFieldMappingPropertyDocBlock(array $fieldMapping, Class
{
$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 . ' *';
Please sign in to comment.
Something went wrong with that request. Please try again.