Different child-elements with XML in the Serializer #60449
Unanswered
ThomasBerends
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi. I'm having some trouble deserializing some XML. The point I'm struggling with is if an element contains multiple different child-elements. For example:
While my classes look like this:
I would want $items to contain an array of just Foo & Bar items, but of course the Serializer has no clue I want to be Foo, and to be Bar. Is there any way I can configure or fix this?
Beta Was this translation helpful? Give feedback.
All reactions