-
-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
String to DateTime returns \Nette\Utils\Arrays error #44
Comments
I just came across this and I think the way cast works isn't properly explained in the documentation. All it does is instantiate an object and then map an array to public properties. It also won't work with any type that has constructor arguments. I think you should use normalization - the following works:
|
dg
added a commit
that referenced
this issue
Feb 5, 2023
dg
added a commit
that referenced
this issue
Jul 30, 2023
dg
added a commit
that referenced
this issue
Aug 5, 2023
dg
added a commit
that referenced
this issue
Sep 26, 2023
dg
added a commit
that referenced
this issue
Sep 26, 2023
dg
added a commit
that referenced
this issue
Oct 2, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug Description
I am not sure, if I am using this right, but I am trying to convert input string to result DateTime object
Steps To Reproduce
https://fiddle.nette.org/nette/#4f2cd78abf
Will result in the error:
Expected Behavior
Input string will be successfully mapped to target class DateTime property.
The text was updated successfully, but these errors were encountered: