diff --git a/src/ORM/FieldType/DBInt.php b/src/ORM/FieldType/DBInt.php index 5be32ed49..e84e32476 100644 --- a/src/ORM/FieldType/DBInt.php +++ b/src/ORM/FieldType/DBInt.php @@ -65,7 +65,13 @@ class DBInt extends DBField { return sprintf('%d', $this->value); } - + + public function SpelledOut() + { + $v = $this->prepValueForDB($this->value); + return (new NumberFormatter(i18n::get_locale(), NumberFormatter::SPELLOUT))->format($v); + } + public function scaffoldFormField($title = null, $params = null) { return NumericField::create($this->name, $title);