I'm assigning taxonomy terms to an entity (user) like this:
$drupalUser->taxonomy_vocabulary_6 = array('und' => array(0 => array('tid' => _findorcreate_tid($eecid, $arrUser))));
_findorcreate_tid finds, or creates a new tid, within the supplied vocabulary. This function is working correctly. $eecid is the vocabulary ID. $arrUser is some user data imported from a CSV.
When viewing the user object, the correct term name and ID is displayed, but viewing the term's "contents" (at a URL like http://localhost/taxonomy/term/1061), I'm told there is no content.
My very amateur poking around leads me to believe that the taxonomy_index table is not getting populated when I assign the terms in this manner.
I have tried to call
after the user object is saved, but this has yielded no change (and I'm a bit unclear if that function only applies to nodes, or any entity).
Is there a better way of assigning taxonomy terms to a user entity that would fix this?