Doctrine/ORM/Provider/SharingProvider.php
private function getRoleRepository()
    {
        if (null === $this->roleRepo) {
            $this->roleRepo = $this->getRepository(RoleInterface::class);
        }

        return $this->roleRepo;
    }
private function getRoleRepository()
    {
        if (null === $this->roleRepo) {
            $this->roleRepo = $this->getRepository(RoleInterface::class);
        }

        return $this->roleRepo;
    }
private function getRoleRepository ( ) { if ( null === $ this -> roleRepo ) { $ this -> roleRepo = $ this -> getRepository ( RoleInterface :: class ) ; } return $ this -> roleRepo ; }
Get the role repository.

@return EntityRepository|ObjectRepository
Get the role repository .