Replies: 3 comments 7 replies
-
Hi @phh, At the moment we do not have support for such an Attribute but I would love it, so I will certainly merge a PR that adds this functionality. |
Beta Was this translation helpful? Give feedback.
7 replies
-
Yeah that would be really helpful. Voting for that! |
Beta Was this translation helpful? Give feedback.
0 replies
-
It's helpfull for me too |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there.
Coming from your data-transfer-object package I was using this to take data from external API request and turn these into a more strict and validated PHP object.
One if the things it made easy was the
mapFrom
annotation. From the docs example:Is there any sort of same easy behavior, rather than writing a transformer for every case? The
MapFrom
andMapTo
seems smart. But maybe this is where the original data-transfer-object is a better choice for this?Beta Was this translation helpful? Give feedback.
All reactions