default decimal to string

This commit is contained in:
Yuri Kuznetsov
2025-10-26 12:38:06 +02:00
parent 0a1b7a9817
commit a141a664c6
@@ -82,6 +82,12 @@ class Currency implements FieldConverter
->withDbType($dbType)
->withParam(AttributeParam::PRECISION, $precision)
->withParam(AttributeParam::SCALE, $scale);
$defaultValue = $fieldDefs->getParam(AttributeParam::DEFAULT);
if ($defaultValue !== null) {
$amountDefs = $amountDefs->withParam(AttributeParam::DEFAULT, (string) $defaultValue);
}
}
if ($fieldDefs->isNotStorable()) {