I'm trying to use the function setFieldValue from \includes\user\user.php line 1482
It works fine for setting single values, however some fields require multiple pieces of data, be it checkboxes, addresses, name etc.
I've tried running a bunch of data through it in what I thought would be an acceptable format (associated array, normal array, object) as it seems to be built to handle them.
However no matter what I do, it's being rejected! If the support team could tell me the specific format in which this function accepts array or object data, and give and example for the name field it would be very helpful.
Name data is in the following format
$value->first = 'Jon';
$value->middle = 'Alexander';
$value->last = 'Doe;'
$name-> 'Jon Alexander Doe';
update -
This function also fails to update if the value was null to start with! Even for single values.