In Model.update() using merge function for conditions

fix fox #2170