Nextras\Orm\Mapper\Dbal\DbalMapper::getRelationshipMapper PHP Method

getRelationshipMapper() protected method

protected getRelationshipMapper ( $type, PropertyMetadata $metadata, Nextras\Orm\Mapper\IMapper $otherMapper = null )
$metadata Nextras\Orm\Entity\Reflection\PropertyMetadata
$otherMapper Nextras\Orm\Mapper\IMapper
    protected function getRelationshipMapper($type, PropertyMetadata $metadata, IMapper $otherMapper = null)
    {
        $key = $type . spl_object_hash($metadata) . $metadata->name;
        if (!isset($this->cacheRM[$key])) {
            $this->cacheRM[$key] = $this->createRelationshipMapper($type, $metadata, $otherMapper);
        }
        return $this->cacheRM[$key];
    }