public function isDirty() : bool
    {
        foreach ($this->__state as $prop => $val) {
            if ($this->isModified($prop)) {
                return true;
            }
        }
        return false;
    }
public function isDirty() : bool
    {
        foreach ($this->__state as $prop => $val) {
            if ($this->isModified($prop)) {
                return true;
            }
        }
        return false;
    }
public function isDirty ( ) : bool { foreach ( $ this -> __state as $ prop => $ val ) { if ( $ this -> isModified ( $ prop ) ) { return true ; } } return false ; }
Returns true if any of the model's properties was modified.

@return bool
Returns true if any of the model s properties was modified .