Fixed deletion of all hasManyAndBelongsTo records before update