refactor get entity refed entities attr