schmittjoh / serializer

Library for (de-)serializing data of any complexity (supports JSON, and XML)
http://jmsyst.com/libs/serializer
MIT License
2.32k stars 588 forks source link

Consider generated hydrator to construct objects/graph #904

Open Majkl578 opened 6 years ago

Majkl578 commented 6 years ago
Q A
Feature request? yes
BC Break? yes
RFC? yes

https://github.com/Ocramius/GeneratedHydrator

goetas commented 6 years ago

Not for 2.0.. too much different from the current processing model

Majkl578 commented 6 years ago

Why did you close it?

goetas commented 6 years ago

Ocramius/GeneratedHydrator has a completely different approach to serialization/deserialization compared to this library. In my opinion is a great solution but implementing it into the jms serializer will make it a completely different serializer. most probably the resulting library will have a completely different set of features. It will be just a different serializer.

goetas commented 6 years ago

After some discussion with @Majkl578 , this approach could work. Setting all the props in an array and then using the hydrator could work (and be very fast!)