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

[docs] Add documentation to deserialize on existing objects #1308

Merged
merged 1 commit into from
Mar 27, 2021

Conversation

gam6itko
Copy link
Contributor

Q A
Bug fix? no
New feature? no
Doc updated yes
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #978
License MIT

@goetas
Copy link
Collaborator

goetas commented Mar 27, 2021

Nice! thanks!

@goetas goetas merged commit 2599d4c into schmittjoh:master Mar 27, 2021
@gam6itko gam6itko deleted the docs_object_constructor2 branch March 27, 2021 13:55
@yosvield
Copy link

How is the best way to deserialize on existing objects, i do not find in the documentation

@gam6itko
Copy link
Contributor Author

@yosvield
Copy link

@gam6itko Thank you

@grekpg
Copy link

grekpg commented Oct 13, 2021

i still dont understand how to do it ....
You should pass ExistingObjectConstructor to DeserializationGraphNavigatorFactory constructor. ?? how ?
im using SymfonyBundle

@gam6itko
Copy link
Contributor Author

gam6itko commented Oct 13, 2021

@grekpg

try this

services:
    Acme\ObjectConstructor\ExistingObjectConstructor: ~

    jms_serializer.object_constructor:
        alias:  Acme\ObjectConstructor\ExistingObjectConstructor

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.

4 participants