diff --git a/EntityGeneratorBundle/Doctrine/Property.php b/EntityGeneratorBundle/Doctrine/Property.php index 4b86973..90f2d11 100644 --- a/EntityGeneratorBundle/Doctrine/Property.php +++ b/EntityGeneratorBundle/Doctrine/Property.php @@ -131,9 +131,7 @@ public function toString(string $nlLeftPad = ''): string : 'false'; break; case 'string': - if (!empty($this->defaultValue)) { - $defaultValue = '\'' . $this->defaultValue . '\''; - } + $defaultValue = '\'' . $this->defaultValue . '\''; break; default: $defaultValue = !is_null($this->defaultValue)