I have added new $strictness parameter to get_record() and get_filed() family of methods, adding new methods with different prefix would require at least 6 new methods - thus making the API significantly larger.
The code is in cvs MDL-19689, unittests included. It is not yet used anywhere, so there is still possibility to revert it or change implementation. Any more thought and ideas are welcome.
PS: please have a look at the code/ in-line docs and test if possible
General developer forum
new $DB->get_existing_record() DML method
This discussion has been locked because a year has elapsed since the last post. Please start a new discussion topic.