These are chat archives for collectiveaccess/support

3rd
Sep 2016
moronic
@moronic
Sep 03 2016 21:37
I'm trying to change the value of a set using the set() function, and it seems to change, but does not change in the database. Any idea what is going on?
CollectiveAccess
@collectiveaccess
Sep 03 2016 22:47
@moronic Are you loading an existing record? If so then be sure to set the access mode to ACCESS_WRITE
and then call update() to save
Eg.
$obj->set("field", "value");
$obj->setMode(ACCESS_WRITE);
$obj->update();