protected function getClassToProxy($relation, array $attributes)
    {
        if ($this->entityMap->isPolymorphic($relation)) {
            $localTypeAttribute = $this->entityMap->getLocalKeys($relation)['type'];

            return $attributes[$localTypeAttribute];
        }

        return $this->entityMap->getTargettedClass($relation);
    }
protected function getClassToProxy($relation, array $attributes)
    {
        if ($this->entityMap->isPolymorphic($relation)) {
            $localTypeAttribute = $this->entityMap->getLocalKeys($relation)['type'];

            return $attributes[$localTypeAttribute];
        }

        return $this->entityMap->getTargettedClass($relation);
    }
protected function getClassToProxy ( $ relation , array $ attributes ) { if ( $ this -> entityMap -> isPolymorphic ( $ relation ) ) { $ localTypeAttribute = $ this -> entityMap -> getLocalKeys ( $ relation ) [ 'type' ] ; return $ attributes [ $ localTypeAttribute ] ; } return $ this -> entityMap -> getTargettedClass ( $ relation ) ; }
Get Target class to proxy for a one to one.

@param string $relation
@param array  $attributes

@return string
Get Target class to proxy for a one to one .