Maybe in this case it would be easier to require a new interface `CurrencyProvider` instead of an object repository. This way we also don't rely on the rather soft `findOneBy` method any more.., or Doctrine in general.