Timeline for Checking what user a migration is running as
Current License: CC BY-SA 3.0
6 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jan 13, 2016 at 5:44 | vote | accept | UltraBob | ||
| Jan 13, 2016 at 5:44 | answer | added | UltraBob | timeline score: 0 | |
| Nov 13, 2015 at 9:20 | comment | added | UltraBob | Even better, for someone having the same issue I was having, I was able to put this in the preImport method: $GLOBALS['user']->previousid = $GLOBALS['user']->uid; $GLOBALS['user']->uid = 1; and this in postImport: $GLOBALS['user']->uid = $GLOBALS['user']->previousid; | |
| Nov 13, 2015 at 2:10 | comment | added | UltraBob | That worked for me, if you care to make it an answer and if there is no more specific answer about how to entity reference users in the migrate module within a reasonable period of time I'll accept it. | |
| Nov 12, 2015 at 15:17 | comment | added | Clive♦ | Not familiar with the migrate module - does it run inside a standard Drupal bootstrap? If so $GLOBALS['user']->uid should be avilable | |
| Nov 12, 2015 at 13:54 | history | asked | UltraBob | CC BY-SA 3.0 |