Hi all,

I am using Migrate to import users, their articles and article comments from a non-drupal site.

I have already imported the users. I want to import the articles but ensure that each article is associated with the correct user. In the old db users table the id field was called "id". In the old articles table, the user id field was called "id_editor"

When I create the Migrate file for nodes, I am specifying the following:

$this->addFieldMapping('uid', 'id_editor')
->sourceMigration('BPDUsers')
->defaultValue(1);

I'm not sure whether I'm mapping the uid of the node to id_editor (articles table) or id (users table)

Is the mapping above correct?

Thank you,

Terry

nobody click here