It's not really getRepository(EntityRepository) :)
https://github.com/KnpLabs/KnpRadBundle/blob/develop/Controller/Controller.php#L79