You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the MoneyType in the Form component is forcing the value to a float, using a data transformer.
This cannot be very pleasant when using that type with some external library, like the most famous moneyphp, which requires the value to be an integer.
My proposal is to add a new option (a possible name could be "format"), so the user is not forced to re-cast every value before using it with the Money class. Using "float" as the default of this new option can ensure a full BC.
Example
No response
The text was updated successfully, but these errors were encountered:
Description
Currently, the MoneyType in the Form component is forcing the value to a float, using a data transformer.
This cannot be very pleasant when using that type with some external library, like the most famous moneyphp, which requires the value to be an integer.
My proposal is to add a new option (a possible name could be "format"), so the user is not forced to re-cast every value before using it with the Money class. Using "float" as the default of this new option can ensure a full BC.
Example
No response
The text was updated successfully, but these errors were encountered: