diff --git a/src/entity/active_model.rs b/src/entity/active_model.rs index e0173a6d..4692bce6 100644 --- a/src/entity/active_model.rs +++ b/src/entity/active_model.rs @@ -10,8 +10,7 @@ pub struct ActiveValue where V: Into, { - // Don't want to call ActiveValue::unwrap() and cause panic - pub(self) value: Option, + value: Option, state: ActiveValueState, } @@ -74,7 +73,7 @@ pub trait ActiveModelTrait: Clone + Debug { macro_rules! next { () => { if let Some(col) = cols.next() { - if let Some(val) = self.get(col.into_column()).value { + if let Some(val) = self.get(col.into_column()).into_value() { val } else { return None;