Doctrine/ORM/Provider/SharingProvider.php
private function getRepository($classname)
    {
        $om = ManagerUtils::getManager($this->doctrine, $classname);

        return null !== $om ? $om->getRepository($classname) : null;
    }
private function getRepository($classname)
    {
        $om = ManagerUtils::getManager($this->doctrine, $classname);

        return null !== $om ? $om->getRepository($classname) : null;
    }
private function getRepository ( $ classname ) { $ om = ManagerUtils :: getManager ( $ this -> doctrine , $ classname ) ; return null !== $ om ? $ om -> getRepository ( $ classname ) : null ; }
Get the repository.

@param string $classname The class name

@return EntityRepository|ObjectRepository
Get the repository .