diff --git a/src/entity/active_model.rs b/src/entity/active_model.rs index 0fd54b71..afc8bd28 100644 --- a/src/entity/active_model.rs +++ b/src/entity/active_model.rs @@ -549,7 +549,7 @@ pub trait ActiveModelTrait: Clone + Debug { Ok(am) } - /// Returns `true` if any columns were changed. + /// Return `true` if any field of `ActiveModel` is `Set` fn is_changed(&self) -> bool { ::Column::iter() .any(|col| self.get(col).is_set() && !self.get(col).is_unchanged())