Closed SebLours closed 8 years ago
It’s a good idea to make symfony serializer works with FlexibleEntity
, but I think it’s better to do this with implementing the JsonSerializable
interface.
You're right when you want to serialize in json, but the symfony serializer not only supports json format.
You right. You can make a PR for the pomm-symfony-bridge project.
For my project, i create a normalizer for the Symfony serializer. It improves serializer performance and use Pomm logic for FlexibleEntity instances.
https://gist.github.com/SebLours/2b6cb67ce3f99c35d146
Did you think, it can be add to the bundle ?