Bugfix: when using a OneToMany/ManyToOne relation, we must handle when _allowed is the empty tuple.