Closed (fixed)
Project:
Migrate
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
24 Jun 2011 at 16:12 UTC
Updated:
8 Jul 2011 at 16:21 UTC
If you're using MigrateDestinationFile to import files (as I am at the moment), and you want to attach those files to file fields in later migrations (indeed I do), it would be convenient to just pass the fids mapped from the file migration into the file field:
$this->addFieldMapping('field_attachments', 'ATTACHMENTID')
->sourceMigration('Attachment')
->arguments(array('file_function' => 'file_fid'));
Just creating an issue to reference in the commit and CHANGELOG...
Comments
Comment #1
mikeryanDone! That was easy (don't be fooled by the size of the diff, most of it is due to indentation).