swisnl / json-api-client

A PHP package for mapping remote {json:api} resources to Eloquent like models and collections.
MIT License
205 stars 24 forks source link

Do not break out of loop when hydrating relations #71

Closed JaZo closed 4 years ago

JaZo commented 4 years ago

Description

I fixed a bug where the ItemHydrator does not hydrate relations following a relation that needs to be dissociated.

Motivation and context

Bug introduced in #67

How has this been tested?

Tested with added unit test.

Types of changes

What types of changes does your code introduce? Put an x in all the boxes that apply:

Checklist:

Go over all the following points, and put an x in all the boxes that apply.