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

Allow Post Serialize Event to overwrite existing data #129

Closed
Richtermeister opened this issue Jul 26, 2013 · 3 comments
Closed

Allow Post Serialize Event to overwrite existing data #129

Richtermeister opened this issue Jul 26, 2013 · 3 comments

Comments

@Richtermeister
Copy link

The GenericSerializationVisitor throws an exception when trying to add a data field that already exists. This makes it impossible to change existing data for serialization purposes.

My use-case is that my entities store relative file URLs, and during serialization I would like to prepend them with the current host name.

My current workaround is to use the PreSerialize event to temporarily update the field on the entity, but that seems hackish and has limits.

@fieg
Copy link

fieg commented Jan 21, 2014

+1 in combination with #197 so you can access the serialised data and modify it when needed.

@goetas
Copy link
Collaborator

goetas commented Sep 9, 2016

#273 merged

@goetas goetas closed this as completed Sep 9, 2016
@Richtermeister
Copy link
Author

Yaaay! Thanks. @goetas , you rock, it's great that you're running with this project!

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

3 participants