1
0
mirror of synced 2024-12-13 22:56:04 +03:00

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

Improve DocBlock annotations of generated entities
This commit is contained in:
Guilherme Blanco 2012-11-02 17:27:11 -07:00
commit 515847bece

View File

@ -672,7 +672,7 @@ public function __construct()
{ {
$lines = array(); $lines = array();
$lines[] = '/**'; $lines[] = '/**';
$lines[] = ' * '.$metadata->name; $lines[] = ' * ' . $this->getClassName($metadata);
if ($this->generateAnnotations) { if ($this->generateAnnotations) {
$lines[] = ' *'; $lines[] = ' *';
@ -1126,7 +1126,7 @@ public function __construct()
{ {
$lines = array(); $lines = array();
$lines[] = $this->spaces . '/**'; $lines[] = $this->spaces . '/**';
$lines[] = $this->spaces . ' * @var ' . $this->getType($fieldMapping['type']) . ' $' . $fieldMapping['fieldName']; $lines[] = $this->spaces . ' * @var ' . $this->getType($fieldMapping['type']);
if ($this->generateAnnotations) { if ($this->generateAnnotations) {
$lines[] = $this->spaces . ' *'; $lines[] = $this->spaces . ' *';