Replies: 1 comment
-
Hi @jbeales, Normalizers are kinda internal classes so they get changed quite often, I wouldn't depend on them for what they're doing right now in your code. That being said, I've been working on a new data feature which might solve your problem: #831 |
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
-
Upgrading to v4, I have run into a problem with my code and the new
NormalizedModel
. My Model & associated DTO have some relations that I have defined on the DTO as Lazy properties, and the DTO'sfromModel()
looks like this:This lets me add the lazy properties without re-writing all 21 properties on the model, but in v4, with the new
NormalizedModel
it doesn't work, (you can't merge an array and an object!).If there was a setter on
NormalizedModel
it would be possible to create theNormalizedModel
then add the lazy properties before returning it. If there was a way to access the properties of theNormalizedModel
it would be possible to get the properties as an array and merge that with the Lazy properties, then return the merged array as I did in v3.So my question is, am I missing something? Is there a way to add the Lazy properties to the
NormalizedModel
that I haven't thought of, or is this something that I should be opening a PR to create?Beta Was this translation helpful? Give feedback.
All reactions