When i keepSnapshots and i check getChangedFields() in my model and i try to save model with int value, even if it's the same it's shows me that value was changed and when i try to check string, it work. Field isOutstanding in mysql database is smallint type. Example.
$transaction = MyTransaction::findFirst(1); $transaction->isOutstanding = 0; $transaction->save();
My getChangedFields function shows that isOutstanding field was changed, even if it's not, because orginal value is 0.
If i check in that way, then it's work
$transaction = MyTransaction::findFirst(1); $transaction->isOutstanding = '0'; $transaction->save();
How can i check changing int or decimal values using function getChangedFields , or hasChanged ??