Add an empty relationship to resource in 'data' section.
public addEmptyRelationshipToData ( Neomerx\JsonApi\Contracts\Schema\ResourceObjectInterface $parent, Neomerx\JsonApi\Contracts\Schema\RelationshipObjectInterface $relationship ) : void | ||
$parent | Neomerx\JsonApi\Contracts\Schema\ResourceObjectInterface | |
$relationship | Neomerx\JsonApi\Contracts\Schema\RelationshipObjectInterface | |
return | void |