Skip to content

All fields are merged in case of related entity with the same iri #47

@comxd

Description

@comxd

In case of subresources using the same "iri" of the parent, all fields are merged into the same resource.

Test case, two entities with the same iri:

// entities
User:
    id
    username
    password
    userProfile (OneToOne)

UserProfile:
    id
    photo
    firstname
    ...
// resources file
App\Entity\User:
    iri: 'http://schema.org/Person'

App\Entity\UserProfile:
    iri: 'http://schema.org/Person'

Result is all the fields of the latest entity (with the same iri) parsed by the parseHydraDocumentation(), in my case the fields are from "UserProfile" entity.

Activity

streusselhirni

streusselhirni commented on May 1, 2020

@streusselhirni

Any news on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @dunglas@comxd@streusselhirni

        Issue actions

          All fields are merged in case of related entity with the same iri · Issue #47 · api-platform/api-doc-parser