-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
DateTime normalization bug with GetSetMethodNormalizer() when using HHVM #10229
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
Comments
OK weird.... I didn't do anything and now all of a sudden this is no longer happening. I will however report back when I experience this again |
Closing for now. Feel free to reopen when you have more details on what you're trying to achieve, what have you tried and what's going wrong. |
Can you reopen this again? It's happening again,,, What do you mean with more details? I'm trying to normalize an entity into an array and it doesn't work |
You'll need to provide more details on how to reproduce it (more than "it doesn't work"). I just tested a simple scenario and it works fine for me. Would you mind forking the Symfony Standard Edition and reproducing your issue on a branch? Would help debugging. |
Just found out that this is an issue related to HHVM. When I run my tests with php, it works fine. |
OK what's weird is that when I use the same code on my webserver (also running HHVM) it works like a charm. |
Here's how I tried to reproduce it: https://github.com/jakzal/symfony-standard/compare/issue10229 (test case is just to run it on travis with hhvm). Locally everything is fine (also with hhvm). Take a look at my branch please (look for SerializerController): https://github.com/jakzal/symfony-standard/tree/issue10229 we need a reproducible scenario. |
I get the feeling that is to due to sqlite since that's what I'm using within my tests. I will open a fork in 5 minutes |
alright here we go: |
I also tried to debug it with |
Tried to use a mysql database for testing, but the result is still the same. This mean we can exclude that it's either doctrine's/sqlite's fault |
Is there a way to run phpunit tests in a different environment other than "testing"? since it's only happening in the "testing" environment that might help us figure out where the problem lies |
No |
i will confirm before you can close this, 👶 |
confirmed: it works with callbacks. let's close this. @fabpot |
… (cordoval) This PR was submitted for the master branch but it was merged into the 2.3 branch instead (closes #3701). Discussion ---------- [Serializer] add documentation for serializer callbacks related symfony/symfony#10229 | Q | A | | --- | --- | | Doc fix? | no | | New docs? | yes | | Applies to | 2.3+ | | Fixed tickets | self 👶 | | License | CC-ASA 3.0 Unported | Sent using [Gush](https://github.com/gushphp/gush) Commits ------- b865b40 add comma madness and lowercasing W efe2029 plug new revision eabdbd0 add serializer set callback documentation
I have the following array of entities:
When I try to normalize one element wth the following code:
I get this (obviously shortened)
I'm not sure whether this is a bug or I just missed a configuration option which causes this behaviour
The text was updated successfully, but these errors were encountered: