public function getRepository($entityName)
    {
        $realEntityName = $entityName;
        if (false !== strpos($entityName, ':')) {
            list($namespaceAlias, $simpleClassName) = explode(':', $entityName);
            $realEntityName = $this->managerRegistry->getAliasNamespace($namespaceAlias).'\\'.$simpleClassName;
        }

        if (isset($this->entities[$realEntityName])) {
            $realEntityName = $this->entities[$realEntityName];
        }

        return $this->repositoryManager->getRepository($realEntityName);
    }
public function getRepository($entityName)
    {
        $realEntityName = $entityName;
        if (false !== strpos($entityName, ':')) {
            list($namespaceAlias, $simpleClassName) = explode(':', $entityName);
            $realEntityName = $this->managerRegistry->getAliasNamespace($namespaceAlias).'\\'.$simpleClassName;
        }

        if (isset($this->entities[$realEntityName])) {
            $realEntityName = $this->entities[$realEntityName];
        }

        return $this->repositoryManager->getRepository($realEntityName);
    }
public function getRepository ( $ entityName ) { $ realEntityName = $ entityName ; if ( false !== strpos ( $ entityName , ':' ) ) { list ( $ namespaceAlias , $ simpleClassName ) = explode ( ':' , $ entityName ) ; $ realEntityName = $ this -> managerRegistry -> getAliasNamespace ( $ namespaceAlias ) . '\\' . $ simpleClassName ; } if ( isset ( $ this -> entities [ $ realEntityName ] ) ) { $ realEntityName = $ this -> entities [ $ realEntityName ] ; } return $ this -> repositoryManager -> getRepository ( $ realEntityName ) ; }
Returns custom repository if one specified otherwise returns a basic repository.

{@inheritdoc}
Returns custom repository if one specified otherwise returns a basic repository .