You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@geotas thank you for your quick response but i believe it is still not answered fully
I have a social Post / Comment entity and its User entity (creator of the post) in OneToMany relation ship.
Depending on the Post privacy setting, I want to control what user detail gets return.
I have checked
Exclude/Expose with if expression but could not access to its parent entity in relation (Post / Comment)
Preserialize Event - For some reason, it doesn't event get called at the moment and unsure whether I can set 'Dynamic' Groups for User entity on 'Preserialize' event.
Custom Exclusion Policy - Still unsure how I can access to Post / Comment from User
Does anyone have any idea?
I am serialising ‘Post’ and user needs to have different fields return. In its Exclude and Expose, i dont get to reference to the specific Post i am serialising if it makes sense.
I cannot do things like getPost from user as user has many Posts..
I am scratching my head for hours..
The text was updated successfully, but these errors were encountered:
@geotas thank you for your quick response but i believe it is still not answered fully
I have a social Post / Comment entity and its User entity (creator of the post) in OneToMany relation ship.
Depending on the Post privacy setting, I want to control what user detail gets return.
I have checked
Exclude/Expose with if expression but could not access to its parent entity in relation (Post / Comment)
Preserialize Event - For some reason, it doesn't event get called at the moment and unsure whether I can set 'Dynamic' Groups for User entity on 'Preserialize' event.
Custom Exclusion Policy - Still unsure how I can access to Post / Comment from User
Does anyone have any idea?
I am serialising ‘Post’ and user needs to have different fields return. In its Exclude and Expose, i dont get to reference to the specific Post i am serialising if it makes sense.
I cannot do things like getPost from user as user has many Posts..
I am scratching my head for hours..
The text was updated successfully, but these errors were encountered: