You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am deserializing using jms_serializer.object_constructor: alias: jms_serializer.doctrine_object_constructor.
Always new entity is generated instead of updated entity initaly loaded from database because this test fails Identifiers test . Debugging it, I've seen the identifier is not recognized because it was originally idPlanification while after serialization and coming back from AJAX call, it becomes id_planification.
It's ok to convert camel case to snake case through serialization, but shouldn't this handled automatically through deserialization if so?
Or how can I automatically transform back my JSON string to inital camel case before it gets handled by the DoctrineObjectorConstructor
Thanks,
The text was updated successfully, but these errors were encountered:
asgardia7
changed the title
Symfony DoctrineObjectorConstructor always create new entity because of camel case to snake case conversion issue
Symfony DoctrineObjectorConstructor always create new entity because of camel case to snake case conversion
Mar 22, 2017
asgardia7
changed the title
Symfony DoctrineObjectorConstructor always create new entity because of camel case to snake case conversion
[Symfony] DoctrineObjectorConstructor always create new entity because of camel case to snake case conversion
Mar 22, 2017
asgardia7
changed the title
[Symfony] DoctrineObjectorConstructor always create new entity because of camel case to snake case conversion
[Symfony] DoctrineObjectorConstructor always creates new entity because of camel case to snake case conversion
Mar 22, 2017
Hello,
I am deserializing using
jms_serializer.object_constructor: alias: jms_serializer.doctrine_object_constructor
.Always new entity is generated instead of updated entity initaly loaded from database because this test fails Identifiers test . Debugging it, I've seen the identifier is not recognized because it was originally
idPlanification
while after serialization and coming back from AJAX call, it becomesid_planification
.It's ok to convert camel case to snake case through serialization, but shouldn't this handled automatically through deserialization if so?
Or how can I automatically transform back my JSON string to inital camel case before it gets handled by the
DoctrineObjectorConstructor
Thanks,
The text was updated successfully, but these errors were encountered: