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

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

Open
comxd opened this issue Feb 22, 2019 · 1 comment
Open

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

comxd opened this issue Feb 22, 2019 · 1 comment

Comments

@comxd
Copy link

comxd commented Feb 22, 2019

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.

@streusselhirni
Copy link

Any news on this?

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

No branches or pull requests

3 participants