Hmm... `getRepository` only returns ObjectRepository, as far as I know.