|
@@ -35,13 +35,13 @@ class NumberField extends InputField
|
|
*/
|
|
*/
|
|
protected function configure()
|
|
protected function configure()
|
|
{
|
|
{
|
|
- parent::configure();
|
|
|
|
-
|
|
|
|
// default precision is locale specific (usually around 3)
|
|
// default precision is locale specific (usually around 3)
|
|
$this->addOption('precision');
|
|
$this->addOption('precision');
|
|
$this->addOption('grouping', false);
|
|
$this->addOption('grouping', false);
|
|
$this->addOption('rounding-mode', NumberToLocalizedStringTransformer::ROUND_HALFUP);
|
|
$this->addOption('rounding-mode', NumberToLocalizedStringTransformer::ROUND_HALFUP);
|
|
|
|
|
|
|
|
+ parent::configure();
|
|
|
|
+
|
|
$this->setValueTransformer(new NumberToLocalizedStringTransformer(array(
|
|
$this->setValueTransformer(new NumberToLocalizedStringTransformer(array(
|
|
'precision' => $this->getOption('precision'),
|
|
'precision' => $this->getOption('precision'),
|
|
'grouping' => $this->getOption('grouping'),
|
|
'grouping' => $this->getOption('grouping'),
|