I've been editing nodes in code (Drupal 8) like so:
$node = \Drupal\node\Entity\Node::load($nid); $node->body->value = $body; $node->title->value = $title; $node->taxonomy_field->target_id = $value;
If the 'taxonomy_field' entity reference supports multiple terms, how do place them in the $node object? I have tried at least a dozen ways I found on other threads, but none worked. Either errors were thrown, of the code just silently failed.