1
0
mirror of synced 2024-12-13 14:56:01 +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[] = '/**';
$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 . ' *';