app\models\EntityModel::isChanged PHP Method

isChanged() public method

isDirty return true if the field's new value is the same as the old one
public isChanged ( )
    public function isChanged()
    {
        foreach ($this->fillable as $field) {
            if ($this->{$field} != $this->getOriginal($field)) {
                return true;
            }
        }
        return false;
    }