From b263a00eac10a98bc932f4c280d08e6c795185ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?W=C5=82odzimierz=20Gajda?= Date: Wed, 6 Jun 2012 08:44:25 +0200 Subject: [PATCH] Entities generator: constructor's template docblock --- lib/Doctrine/ORM/Tools/EntityGenerator.php | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/lib/Doctrine/ORM/Tools/EntityGenerator.php b/lib/Doctrine/ORM/Tools/EntityGenerator.php index 65169df45..e75c3e151 100644 --- a/lib/Doctrine/ORM/Tools/EntityGenerator.php +++ b/lib/Doctrine/ORM/Tools/EntityGenerator.php @@ -37,7 +37,7 @@ use Doctrine\ORM\Mapping\ClassMetadataInfo, * $generator->setUpdateEntityIfExists(true); * $generator->generate($classes, '/path/to/generate/entities'); * - * + * * @link www.doctrine-project.org * @since 2.0 * @author Benjamin Eberlei @@ -235,7 +235,10 @@ public function () * @var string */ private static $constructorMethodTemplate = -'public function __construct() +'/** + * Constructor + */ +public function __construct() { } @@ -975,10 +978,10 @@ public function () if ($this->generateAnnotations) { $lines[] = $this->spaces . ' *'; - + if (isset($associationMapping['id']) && $associationMapping['id']) { $lines[] = $this->spaces . ' * @' . $this->annotationsPrefix . 'Id'; - + if ($generatorType = $this->getIdGeneratorTypeString($metadata->generatorType)) { $lines[] = $this->spaces . ' * @' . $this->annotationsPrefix . 'GeneratedValue(strategy="' . $generatorType . '")'; }