Adds a deprecation warning for setValueAndSave