Skip to content
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

Custom Class Type Mapping #446

Closed
bassrock opened this issue Apr 7, 2015 · 1 comment
Closed

Custom Class Type Mapping #446

bassrock opened this issue Apr 7, 2015 · 1 comment

Comments

@bassrock
Copy link

bassrock commented Apr 7, 2015

It should be possible to allow custom type mapping in the Symfony 2 Config. For instance, I use Carbon for my date fields. When serialized without a Type annotation they are just empty objects. But when I add the @type("DateTime") they serialize correctly.

Is there a way to map class types to specific Serializer Types in the config?

@goetas
Copy link
Collaborator

goetas commented Apr 3, 2017

sorry for the incredibly long feedback loop.
the feature you asking does not exists. the solution you are using is the preferred, it does not rely on external configs, is simple and explicit

Do not hesitate to re open a new issue if the problem persists

@goetas goetas closed this as completed Apr 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants