replaced fieldData['foo]['reference']['entity'] with a getter