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')
         ->arguments(array('file_function' => 'file_fid'));

Just creating an issue to reference in the commit and CHANGELOG...


mikeryan’s picture

Status: Active » Fixed

Done! That was easy (don't be fooled by the size of the diff, most of it is due to indentation).

Status: Fixed » Closed (fixed)

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