Enum Array #60
aiglesiasn
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi @frankdejonge thank you for your great package!
I wanted to ask you something.
I wanted to hydrate an Object that has an array of Enums.
I tried with
CastListToType Attribute
but this didn't work because I got and exception:Argument #2 ($payload) must be of type array, string given
I ended up creating this caster for Enums:
And this worked.
What do you think about this? do you see any other solution for this case?
Thanks for your time!
Beta Was this translation helpful? Give feedback.
All reactions