diff --git a/lib/Doctrine/ORM/Tools/EntityGenerator.php b/lib/Doctrine/ORM/Tools/EntityGenerator.php index b2bf1880e..5220fad55 100644 --- a/lib/Doctrine/ORM/Tools/EntityGenerator.php +++ b/lib/Doctrine/ORM/Tools/EntityGenerator.php @@ -1385,11 +1385,11 @@ public function __construct() $replacements = array( '' => ucfirst($type) . ' ' . $variableName . '.', '' => $methodTypeHint, - '' => $variableType.(null !== $defaultValue ? ('|'.$defaultValue) : ''), + '' => $variableType . (null !== $defaultValue ? ('|' . $defaultValue) : ''), '' => $variableName, '' => $methodName, '' => $fieldName, - '' => ($defaultValue !== null ) ? (' = '.$defaultValue) : '', + '' => ($defaultValue !== null ) ? (' = ' . $defaultValue) : '', '' => $this->getClassName($metadata) );