Merge pull request #498 from lanthaler/improve-generated-entity-doc
Improve DocBlock annotations of generated entities
This commit is contained in:
commit
515847bece
@ -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 . ' *';
|
||||||
|
Loading…
Reference in New Issue
Block a user