Replies: 1 comment
-
|
Okay i suppose this is related to #550 so i will close this for now |
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Setup
So I have a pretty basic set up right now: I have a
Communityclass and aGetCommunityDto. I am trying to map an object of typeCommunityto an object of typeGetCommunityDtobefore returning it from a controller. I created the mappings in theCommunityProfileand i load the profile in the Community Module.Community
GetCommunityDto
Community Profile
Controller Method
Problem
With this set up the mapper returns an empty object and i am not sure why. If i explicitly tell the mapper what to do in the profile:
eg:
the mapper returns me an object with an id. This is not the expected behaviour as I understand. Shouldnt the mapper be able to automatically figure out that id belongs to id?
Beta Was this translation helpful? Give feedback.
All reactions