Add getter to EntityRepository