Fix broken hasManyToMany()

See #938