begin switch from relation to entityreference