Skip to content

Commit 43862c4

Browse files
mdoutreluingnejaviereguiluz
authored andcommitted
[Form] Add model_type option to MoneyType
1 parent ed1f530 commit 43862c4

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

reference/forms/types/money.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,18 @@ If set to ``true``, the HTML input will be rendered as a native HTML5
7676

7777
As HTML5 number format is normalized, it is incompatible with ``grouping`` option.
7878

79+
model_type
80+
~~~~~~~~~~
81+
82+
**type**: ``string`` **default**: ``float``
83+
84+
If, for some reason, you need the value to be converted to an ``integer`` instead of a ``float``,
85+
you can set the option value to ``integer``.
86+
87+
.. versionadded:: 7.1
88+
89+
The ``model_type`` option was introduced in Symfony 7.1.
90+
7991
scale
8092
~~~~~
8193

0 commit comments

Comments
 (0)