1
0
mirror of synced 2024-12-13 14:56:01 +03:00

Improve DocBlock annotations of generated entities

Currently, the DocBlock annotations for member variables contain the variable name as description which is redundant and should be removed. Furthermore the class is annotated with the FQN instead of just the name. This makes automatically generated documentation quite ugly.
This commit is contained in:
Markus Lanthaler 2012-11-02 17:15:44 +01:00
parent 129d6efd85
commit 1b7ca67fdb

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 . ' *';