I don't see a `getRepository(EntityRepository)` in the previous implementation