[TypeError]
Argument 1 passed to Enm\JsonApi\Model\Resource\Link\LinkCollection::merge() must implement interface Enm\JsonApi\Model\Resource\Link\LinkInterface, array given, called in ...
when i try to work with relationships in
|
foreach ($resource->links() as $link) { |
/** @var LinkInterface $link */
foreach ($resource->links() as $link) {
$existing->links()->merge($link, $replaceExistingValues);
}
$link is array(1) {LinkInterface $link}