Set entity relationship