In my migration the profile2 entities aren't being attached to their users.

All the fields are migrated properly the only thing that seems to be missing the the data on the 'profile' table.

I haven't looked into it much. But the fields do seem to be mapped properly.

I'll look deeper into this next week. It might be with the way the profile_entity is being saved. Not sure.

Comments

mikeryan’s picture

Category: bug » support
Status: Active » Postponed (maintainer needs more info)

Did you ever figure out your problem? Were you properly mapping the 'uid' and 'revision_uid' fields? This worked for me on a project where I used profile2:

    $this->addFieldMapping('uid', 'USERID')
         ->sourceMigration('JiveUser');
    $this->addFieldMapping('revision_uid', 'USERID')
         ->sourceMigration('JiveUser');
ericduran’s picture

Status: Postponed (maintainer needs more info) » Fixed

Yea, I was mapping both the uid and revision_uid. But if it work for you I was probably doing something wrong.

It turned out we didn't need to use profile2 and instead I just mapped it to the regular user accounts which worked as expected.

Thanks for the reply.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.