getRepository() method has finally been removed