The typical way of setting TV values when you have the resource is $resource->setTVValue(). That saves the new version of the TV to the DB.
I'm doing that, but it doesn't 'take' because $resource->getTVValue() gets the value from the $resource object in memory, which isn't modified by setTVValue() (though I think it probably should be), so I need the extra code above in addition to setTVValue().
I should mention that I'm guessing about how this all works. My solution is based on a theory and seems to work, but I could be wrong about what's happening under the hood.
---------------------------------------------------------------------------------------------------------------
PLEASE, PLEASE specify the version of MODX you are using . . . PLEASE!
MODX info for everyone:
http://bobsguides.com/modx.html
[ed. note: BobRay last edited this post 14 years, 6 months ago.]