Skip to content

Commit 7d60d37

Browse files
committed
minor #19359 [Form] Add model_type option to MoneyType (mdoutreluingne)
This PR was squashed before being merged into the 7.1 branch. Discussion ---------- [Form] Add `model_type` option to `MoneyType` Fixes #19353 Commits ------- 43862c4 [Form] Add `model_type` option to `MoneyType`
2 parents 1f77b4f + 43862c4 commit 7d60d37

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)