Closed (fixed)
Project:
Relation
Version:
7.x-1.x-dev
Component:
Relation migrate
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
4 Dec 2012 at 18:20 UTC
Updated:
1 Jan 2013 at 17:10 UTC
Jump to comment: Most recent file
Comments
Comment #1
mikran commentedIt has to be #1716964: uid not set when migrating *reference fields, did you choose owner for imported relations?
Comment #2
jpklein commentedHere's a patch that ensures that the uid property is defined and set to the current account's id if empty.
Comment #3
jpklein commented@mikran - hmm... it looks like the patch you referenced was already included in my production code, but I still got this error. So, even if I don't change the setting, it should default to user 1 and set the uid field accordingly. But for some reason, the uid field-mapping isn't making it into the $relation object that gets passed to MigrateDestinationRelation::import().... Feel free to investigate further, but this patch seems to be working for me and in the spirit of the existing code.
Comment #4
mikran commentedYea, I just wanted to point out that relation_save was not changed at all. The patch looks good to me, but I'm not too familiar with the migrate classes.
Comment #5
slashrsm commentedThis looks good.
Comment #6
mikran commentedThe patch is now committed