migrate GetRelationTypes to doctrine