diff --git a/lib/Doctrine/ORM/Tools/EntityGenerator.php b/lib/Doctrine/ORM/Tools/EntityGenerator.php index 22d5b412a..71ef0bbb5 100644 --- a/lib/Doctrine/ORM/Tools/EntityGenerator.php +++ b/lib/Doctrine/ORM/Tools/EntityGenerator.php @@ -421,7 +421,7 @@ public function __construct() $this->generateEntityBody($metadata) ); - $code = str_replace($placeHolders, $replacements, static::$classTemplate) . "\n"; + $code = str_replace($placeHolders, $replacements, static::$classTemplate); return str_replace('', $this->spaces, $code); }