New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Attempted to call an undefined method named "setDepth" of class "JMS\Serializer\Visitor\Factory\JsonSerializationVisitorFactory". #751
Comments
I think your is a valid bug, the method |
I have the same trouble. When I try to serialize entity which has related data, application throws exception |
This is most likely related to some type mapping error, like some entities
have a type "array" but in reality they are doctrine collections.
Days ago this #596
was solved. Can it be related? Which version are you using?
…On Fri, 11 Oct 2019, 13:15 SunPaulo, ***@***.***> wrote:
I have the same trouble. When I try to serialize entity which has related
data, application throws exception Context visitingStack not working well.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#751?email_source=notifications&email_token=AAF5UJ46XIDNSPME77R6LL3QOBN4PA5CNFSM4HTRJW42YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEA7VRHA#issuecomment-541022364>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAF5UJYRFI2PBHHK3VDZMXLQOBN4PANCNFSM4HTRJW4Q>
.
|
The same error |
I had the same as the original post. Upgrade from v2 to v3 and I was greeted with: Did some digging and this is what I gathered: version: 3.10.0
It is a configurable option.
If set, as shown in the docs or upgrade guide a method call is added for Is this a case of wrong documentation or the factory is wrong? |
Just upgraded from 2.x to 3.x and this is the error I get. It seems to be related to:
However, when I remove the depth option, I get:
Context visitingStack not working well
The text was updated successfully, but these errors were encountered: