issue #21986: allow toMany off a non-primary key