A
A
Alexander2020-07-29 17:56:55
symfony
Alexander, 2020-07-29 17:56:55

Get rid of __initializer__, __cloner__, __isInitialized__ when outputting json?

// ...
return $this->json($user);

But along with the necessary data, the related fields come
"__initializer__": null,
"__cloner__": null,
"__isInitialized__": true

Answer the question

In order to leave comments, you need to log in

3 answer(s)
M
Maxim Fedorov, 2020-07-29
@AleksandrB

Serialize doctrine proxy objects

O
OnYourLips, 2015-02-07
@seregaperezhogin

Macbook and virtual machine on it with VS.
Dualbut is evil.

Y
Yuri Kan, 2015-02-07
@yurikan

Buy a Mac and Install Parallels Desktop

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question