protected function cacheRelation($results, $relation)
    {
        $cache = $this->parentMapper->getEntityCache();

        $cache->cacheLoadedRelationResult($this->parent->getEntityKeyName(), $relation, $results, $this);
    }
protected function cacheRelation($results, $relation)
    {
        $cache = $this->parentMapper->getEntityCache();

        $cache->cacheLoadedRelationResult($this->parent->getEntityKeyName(), $relation, $results, $this);
    }
protected function cacheRelation ( $ results , $ relation ) { $ cache = $ this -> parentMapper -> getEntityCache ( ) ; $ cache -> cacheLoadedRelationResult ( $ this -> parent -> getEntityKeyName ( ) , $ relation , $ results , $ this ) ; }
Cache the link between parent and related
into the mapper's Entity Cache.

@param EntityCollection|Mappable $results  result of the relation query
@param string                    $relation name of the relation method on the parent entity

@return void
Cache the link between parent and related into the mapper s Entity Cache .