I am using the migrate module to copy data from multiple sources to a new drupal installation. So far I can copy a lot of what I need from the examples presented in the module. I currently adhere to adding terms or taxonomy to newly created nodes. An example shows:
// These are related terms, which by default will be looked up by name $this->addFieldMapping('migrate_example_beer_styles', 'terms') ->separator(',');
I tracked the destination mapping of migrate_example_beer_styles and it looks like this is the machine name for this taxonomy.
I tried to imitate this behavior with every variation of what my machine_name should have machine_name , but the terms do not seem to be related:
By id:
// where source breed_id is '1,100' - it finds mapped values accordingly $this->addFieldMapping('breeds', 'breed_id') ->sourceMigration('BreedMigration') ->separator(',')
And by name:
// where source breeds is 'Dogs,German Shepherd' $this->addFieldMapping('breeds', 'breeds') ->separator(',');
Am I mistaken in believing that the destination assignment is a machine name for a taxonomy?
This version of the migrate module was released recently, I did not find any other useful examples on the Internet.
php drupal drupal-7 migrate
labue
source share