Erison Silva
Erison Silva
> my thought was that you don't need the serializer when you just normalizing/denormalizing well But I need to convert from `object to array` -> save into the database and...
> my thought was that you don't need the serializer when you just normalizing/denormalizing or do you mean the `Selializer` class?
> i meant the serializer class, but we still might use it for the nice functions > > > object to array -> save into the database > > and...
hmmm good question! I would use SymfonyInterface and pass the instace that we configurate! why? because we use `snake_case` but the guy configure `CamelCase` in his config, then it'll convert...
> there is an example of just using normalizer with denormalize https://symfony.com/doc/4.4/components/serializer.html#camelcase-to-snake-case hmmm nice, maybe we could depends of `ObjectNormalizerInterface` and not the `SerializerInterface`.
> the DenormalizerInterface probably doesn't exist as service like the SerializerInterface does well I would choose the option to have this `injected` in the service instead of use the `new...
> @eerison if you can try to make an MR for the coverage, then i can later try to make an MR for the serializer (if you didn't already) well...
I guess you can mock the DB, you just need to check if after convert from `object` to `array` (and the other way round 😄 ), it's as expected! Maybe...
> for the (first) transformer test, i don't need the DB, i just mock the manager, i was just thinking about using the fake Entity objects so i don't need...
Hey @Hanmac I don't know if it helps somehow, But into the block bundle there is a definition for serializer, maybe it help somehow: https://github.com/sonata-project/SonataBlockBundle/blob/4.x/src/Resources/config/serializer/Model.BaseBlock.xml or maybe we should define...