A long list properties are repeated in fromModel #378
opcodespace
started this conversation in
General
Replies: 1 comment 2 replies
-
You could try: return new self(array_merge(...$memer->toArray(), [// Some custom mappings here])); |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Not sure I am doing it correctly. I am to type again in fromModel. Is this the correct way? It is tedious work if we have a long list of properties.
Beta Was this translation helpful? Give feedback.
All reactions