Model.setDirty implementation