Applied patch to entity reference to allow Roles reference