Many-to-many update method.