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

Updated April 04, 2018 16:07 PM

Updated November 29, 2017 21:07 PM

Updated May 14, 2018 17:07 PM

Updated June 27, 2018 10:07 AM

Updated July 27, 2018 15:07 PM