class RemoteRelationCollection extends Collection
{
    public function resolve()
    {
        $resolvedRelations = (new RelationsResolver())->resolveRelations($this);

        return array_map(function ($resolvedRelation) {
            $originalRelationObject = $this->where('remote_model_id', $resolvedRelation['id'])->first();
