-
-
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 a stdClass #158
Comments
I guess |
Related: #271 A |
@lsmith77 |
I agree. Imo:
Should result in:
This is not possible at the moment as far as I can see |
In 2016, i continue having this issue |
2017 and still banging our heads against a brick wall. |
commented about it already here As already said, stdclass is an php particularity and different developers handle data inside it in different ways and because of it, there is no "true" way to solve the problem. Even phpitself handles it in a particular way and having edge cases that was necessary to document
I understand that there are more than 5-10 issues about
A custom handler as suggested in schmittjoh/serializer#429 can be a solution for you, since you can decide the solution to adopt that fits in a better way your application. In case I'm missing some important details, or you do not agree with my explanation can you explain your usecase? |
@goetas Thanks, I got rid of stdClass in my code and I deal with a simple array instead. |
Somebody in IRC mentioned this, so figured I'd try it out too.
It seems the bundle doesn't serialize a stdClass. Is there a reason why? (I'm clueless as to the inner workings of JMSSerializer)
The text was updated successfully, but these errors were encountered: