How to set the value of a field "reference to a term" with the use of entity_metadata_wrapper?
Strange. This is not working:

$node_wrapper-&gt;field_sector-&gt;set($brancheid);
$node_wrapper-&gt;field_dienst-&gt;set($oplossingsid);


But this is working:

$node_wrapper-&gt;field_sector = $brancheid;
$node_wrapper-&gt;field_dienst = $oplossingsid;