Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit f70f43d

Browse filesBrowse files
committed
feature #20768 [Form] Update input option for MoneyType (StevenRenaux)
This PR was merged into the 7.3 branch. Discussion ---------- [Form] Update `input` option for `MoneyType` Related to symfony/symfony#59993 Commits ------- be54b38 Update input option for MoneyType
2 parents 7f9f20f + be54b38 commit f70f43d
Copy full SHA for f70f43d

File tree

1 file changed

+3
-0
lines changed
Filter options

1 file changed

+3
-0
lines changed

‎reference/forms/types/money.rst

Copy file name to clipboardExpand all lines: reference/forms/types/money.rst
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@ input
8383
By default, the money value is converted to a ``float`` PHP type. If you need the
8484
value to be converted into an integer (e.g. because some library needs money
8585
values stored in cents as integers) set this option to ``integer``.
86+
You can also set this option to ``string``, it can be useful if the underlying
87+
data is a string for precision reasons (for example, Doctrine uses strings for
88+
the decimal type).
8689

8790
.. versionadded:: 7.1
8891

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.