update manyToMany relationships