Entity properly handles proxy models