Drupal 8 Migrate API how to map multiple existing term ids to an entity?

by quantumized   Last Updated November 08, 2018 23:07 PM

I'm trying to map multiple existing terms using their target_id values to an entity (Commerce Product) and I can only get the first value to map.

My yml file looks like this:

    plugin: explode
    source: tid
    delimiter: ','

And, for now, I'm hard coding two existing term ID values in through the source plugin like so:

$row->setSourceProperty('tid', '806,635');

But no matter what I try only the first term is referenced. And, yes, the term field is set to unlimited.

Any ideas?

Related Questions

How to edit vocabulary machine name?

Updated November 29, 2017 21:07 PM

migrate taxonomy term csv

Updated May 14, 2018 17:07 PM

Auto-create terms during node migration

Updated July 27, 2018 15:07 PM