We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed1f530 commit 945b3f0Copy full SHA for 945b3f0
reference/forms/types/money.rst
@@ -76,6 +76,22 @@ If set to ``true``, the HTML input will be rendered as a native HTML5
76
77
As HTML5 number format is normalized, it is incompatible with ``grouping`` option.
78
79
+model_type
80
+~~~~~
81
+
82
+**type**: ``string`` **default**: ``float``
83
84
+If set to ``integer``, the value will be converted to an ``integer``.
85
86
+.. caution::
87
88
+ When the value is set to ``integer``, the ``divisor`` option must not be set to ``1``,
89
+ to avoid losing decimals during the casting.
90
91
+.. versionadded:: 7.1
92
93
+ The ``model_type`` option was introduced in Symfony 7.1.
94
95
scale
96
~~~~~
97
0 commit comments