Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commitf70f43d

Browse files
committed
feature#20768 [Form] Updateinput option forMoneyType (StevenRenaux)
This PR was merged into the 7.3 branch.Discussion----------[Form] Update `input` option for `MoneyType`Related tosymfony/symfony#59993Commits-------be54b38 Update input option for MoneyType
2 parents7f9f20f +be54b38 commitf70f43d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

‎reference/forms/types/money.rst

Lines 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)

[8]ページ先頭

©2009-2025 Movatter.jp