Permalink
Browse files

Entities generator: constructor's template docblock

  • Loading branch information...
1 parent 9445502 commit b263a00eac10a98bc932f4c280d08e6c795185ac @gajdaw gajdaw committed Jun 6, 2012
Showing with 7 additions and 4 deletions.
  1. +7 −4 lib/Doctrine/ORM/Tools/EntityGenerator.php
View
11 lib/Doctrine/ORM/Tools/EntityGenerator.php
@@ -37,7 +37,7 @@
* $generator->setUpdateEntityIfExists(true);
* $generator->generate($classes, '/path/to/generate/entities');
*
- *
+ *
* @link www.doctrine-project.org
* @since 2.0
* @author Benjamin Eberlei <kontakt@beberlei.de>
@@ -235,7 +235,10 @@ public function <methodName>()
* @var string
*/
private static $constructorMethodTemplate =
-'public function __construct()
+'/**
+ * Constructor
+ */
+public function __construct()
{
<spaces><collections>
}
@@ -975,10 +978,10 @@ private function generateAssociationMappingPropertyDocBlock(array $associationMa
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 . '")';
}

0 comments on commit b263a00

Please sign in to comment.