Skip to content

Serialization groups #27

@lube

Description

@lube

I cannot get serialization groups to work this is probably my fault, but maybe someone else is having the same issue and can find help here.

serialization file:

DemoBundle\Entity\Comment:
    exclusion_policy: ALL
    xml_root_name: comment
    properties:
        id:
            expose: true
            type: integer
        text:
            expose: true
            type: string
            groups: [foo]
        postId:
            expose: true
            type: DemoBundle\Entity\Post
            serialized_name: post

routing:

comment_api:
    resource: demo.comment
    type: sylius.api
    defaults:
        serialization_groups: [foo]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions