From d150f8a6f734b5a0c7dc5d97a8c3eb6fe8f5a438 Mon Sep 17 00:00:00 2001 From: "Jonathan H. Wage" Date: Wed, 14 Apr 2010 11:21:39 -0400 Subject: [PATCH] Fixing issue with 4 spaces being hardcoded and not replaced with the configured amount of spaces --- lib/Doctrine/ORM/Tools/EntityGenerator.php | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/lib/Doctrine/ORM/Tools/EntityGenerator.php b/lib/Doctrine/ORM/Tools/EntityGenerator.php index c8957041a..b8c4d5002 100644 --- a/lib/Doctrine/ORM/Tools/EntityGenerator.php +++ b/lib/Doctrine/ORM/Tools/EntityGenerator.php @@ -98,7 +98,7 @@ class EntityGenerator */ public function () { - return $this->; +return $this->; }'; private static $_setMethodTemplate = @@ -109,7 +109,7 @@ public function () */ public function ($) { - $this-> = $; +$this-> = $; }'; private static $_addMethodTemplate = @@ -120,7 +120,7 @@ public function ($) */ public function ($) { - $this->[] = $; +$this->[] = $; }'; private static $_lifecycleCallbackMethodTemplate = @@ -129,7 +129,7 @@ public function ($) */ public function () { - // Add your code here +// Add your code here }'; /** @@ -192,7 +192,8 @@ public function () '', '', '', - '' + '', + '' ); $replacements = array( @@ -200,7 +201,8 @@ public function () $this->_generateEntityUse($metadata), $this->_generateEntityDocBlock($metadata), $this->_generateEntityClassName($metadata), - $this->_generateEntityBody($metadata) + $this->_generateEntityBody($metadata), + $this->_spaces ); return str_replace($placeHolders, $replacements, self::$_classTemplate);