re-link relation before saving an entity.