Mark repositoryCollection as readonly