this need to be done on demand, as ``getRepository`` has a cost (loading metadata ...)