I've a problem with my d7 to d7 migrate... i've tried to assign a variable like this:

class MigrazioneNodiCategorie extends MigrazioneNodi{
  public function __construct(array $arguments){
    parent::__construct($arguments);

    $this->sourceFields['title_field:language'] = 'titolo';
    $this->source = new MigrateSourceSQL($this->query(), $this->sourceFields, NULL, $this->sourceOptions);

    $this->addFieldMapping('title_field', 'title_field');
    $this->addFieldMapping('title_field:language', 'title_field:language');

but the imported language are IT or random, it doesn't create the correct multi language fields... how can I map this fields correctly?

thanks

Comments

csedax90’s picture

seriously no one knows how to do?

mikeryan’s picture

Support for the Entity Translation contrib module is not builtin to either migrate or migrate_d2d - see #2091029: Entity translations are not migrated when using *:language subfields. Destination-side support is proposed in the module itself - see #929402: Add support for migrate module.