Skip to content

Conversation

@kbond
Copy link
Member

@kbond kbond commented Nov 8, 2021

Q A
Bug fix? no
New feature? yes
Tickets Fix #152, #133
License MIT

This injects the entire serializer into NormalizerBridgePropertyHydrator. Previously, it was just the DateTimeNormalizer. We originally decided it would be best to "pick and choose" which normalizers we would enable by default. The reasoning was we wanted to prevent the DoctrineEntityPropertyHydrator being called when hydrating/dehydrating every live prop. This hydrator requires checking with doctrine if the property's type-hint is a doctrine entity. I believe we were concerned about the performance overhead. Maybe this is negligible? Maybe we can adjust this hydrator to be more performant?

Copy link
Member

@weaverryan weaverryan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

makes sense - if there are performance issues, we can find and worry about them later :)

@weaverryan
Copy link
Member

Thank you Kevin!

@weaverryan weaverryan merged commit 1ab8dcc into symfony:main Nov 16, 2021
@kbond kbond deleted the hydrator-serializer branch November 16, 2021 18:26
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

Successfully merging this pull request may close these issues.

symfony-ux-live-component: hydrating via the NormalizerBridgePropertyHydrator

2 participants