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
I'm attempting to serialize a user object, this user object has a relation to 'car' which holds other 'user' entities. The problem is that id 9 is myself, and it will not print the whole user out.
If I turn on displaying null values, 'user' is set to null, like so:
{
"id": 9,
"user": null
}
The text was updated successfully, but these errors were encountered:
The serializer automatically prevents endless recursion and skips over all objects which it is currently visiting.
If you want your user object to be visited twice (as root and as part of a nested collection), then cloning at the moment is the only way to achieve that.
I'm attempting to serialize a user object, this user object has a relation to 'car' which holds other 'user' entities. The problem is that id 9 is myself, and it will not print the whole user out.
If I turn on displaying null values, 'user' is set to null, like so:
The text was updated successfully, but these errors were encountered: