protected function cacheSingleRelationResult(string $parentKey, string $relation, $result, Relationship $relationship)
    {
        $this->cache[$parentKey][$relation] = $this->getCachedRelationship($relation, $result, $relationship);
    }
protected function cacheSingleRelationResult(string $parentKey, string $relation, $result, Relationship $relationship)
    {
        $this->cache[$parentKey][$relation] = $this->getCachedRelationship($relation, $result, $relationship);
    }
protected function cacheSingleRelationResult ( string $ parentKey , string $ relation , $ result , Relationship $ relationship ) { $ this -> cache [ $ parentKey ] [ $ relation ] = $ this -> getCachedRelationship ( $ relation , $ result , $ relationship ) ; }
Cache a single relationship.

@param string       $parentKey
@param string       $relation
@param Mappable     $result
@param Relationship $relationship

@throws MappingException
Cache a single relationship .