-
Improvement
-
Resolution: Fixed
-
Minor
-
3.3
-
MOODLE_33_STABLE
-
MOODLE_33_STABLE
-
MDL-57859-master -
This came up in the dev chat, and I (and other it seems) think it would be good to have a save() (or maybe create_or_update(), but save() had the most votes in the chat) function on persistent that would create if the record has no id, and updates if it does.
This is a very common task to do, and it seems silly to not roll it together into the core object.