-
-
Notifications
You must be signed in to change notification settings - Fork 312
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
Serializing stdClass with arbitrary depth #414
Comments
Forgot to mention that the above is true when the yml config for the entity specifies that "theStdObject" is of type array. |
Also, I guess this is a duplicate of #158 and schmittjoh/serializer#211 . Closing this issue. Sorry for the repost. |
On second thought, the commit done in schmittjoh/serializer#211 sets the data type to array, which still doesn't output objects of arbitrary depth. Any feedback on this is greatly appreciated. |
When serializing objects of stdClass, I never seem to be able to go deeper than 2.
For example, an entity has a property of type stdClass, which has an array of objects of type stdClass which has both properties of type stdClass, and arrays of objects of type stdClass.
The output should be like this (stdClass object is "theStdObject"):
but instead, I get this:
I understand that the max_depth property sets a limit that normaly isn't set, but I've tried setting it to a high number without any luck.
Am I doing something wrong?
The text was updated successfully, but these errors were encountered: