Skip to content

Generator bug when encoding with a to-many include path that is empty #11

Closed
@lindyhopchris

Description

@lindyhopchris

When including a to-many relationship that is empty, we're encountering a bug in the underlying encoder:

Exception: Cannot traverse an already closed generator
src/Parser/RelationshipData/RelationshipDataIsCollection.php:132

Have opened the issue and submitted a PR here:
neomerx/json-api#252

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions