-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for clearing relationships
If you sent a request, trying to clear a relationship (remove the relationship) by sending `"relationshipname" : { "data": null}"` yin ignored this, behaving exactly like it did when the relationship was completely omitted. The hydrator for the relationship was not called and calls to `$jsonApi->getRequest()->getResourceToOneRelationship('relationshipname')` behaved just as if no relationship was sent. This patch intends to change that by handling the null-case and creating empty ToOneRelationships where appropriate.
- Loading branch information
Emil Andersson
committed
Aug 4, 2016
1 parent
57cb7b3
commit b567e21
Showing
4 changed files
with
36 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters