Skip to content

Commit 23c6728

Browse files
committed
Unknown defaut value in Bean doesnt print into SQL
1 parent 350379f commit 23c6728

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Command/SqlGeneratorCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ private static function getDefault(\ReflectionProperty $property, \ReflectionCla
278278
\Infinityloop\Utils\Json::class => '\'' . $defaultValue->toString() . '\'',
279279
\CoolBeans\PrimaryKey\IntPrimaryKey::class => $defaultValue->getValue(),
280280
'string' => '\'' . $defaultValue . '\'',
281-
default => throw new \Exception('Unsupported default value.'),
281+
default => '',
282282
};
283283
}
284284

0 commit comments

Comments
 (0)