src/ModeResolver/SideloadModeResolver.php
public function resolve($property, &$object, &$root, $fullPropertyPath)
    {
        $this->addCollectionToRoot($root, $object, $fullPropertyPath);

        return $this->idsResolver->resolve($property, $object, $root, $fullPropertyPath);
    }
public function resolve($property, &$object, &$root, $fullPropertyPath)
    {
        $this->addCollectionToRoot($root, $object, $fullPropertyPath);

        return $this->idsResolver->resolve($property, $object, $root, $fullPropertyPath);
    }
public function resolve ( $ property , & $ object , & $ root , $ fullPropertyPath ) { $ this -> addCollectionToRoot ( $ root , $ object , $ fullPropertyPath ) ; return $ this -> idsResolver -> resolve ( $ property , $ object , $ root , $ fullPropertyPath ) ; }
Move all relational resources to the root element and
use idsResolver to replace them with a collection of identifiers
@param  string $property The property to resolve
@param  object $object The object which has the property
@param  array $root The root array which will contain the object
@param  string $fullPropertyPath The full dotnotation path to this property
@return mixed
Move all relational resources to the root element and use idsResolver to replace them with a collection of identifiers