Closed (fixed)
Project:
Migrate Extras
Version:
7.x-2.4
Component:
Entity API
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
25 Oct 2012 at 09:18 UTC
Updated:
12 Nov 2012 at 14:30 UTC
I have some nodes on my D6 site that I'd like to migrate to an entity type on my D7 site as they no longer need to be a nodes. I've been trying to find an example somewhere of how this can be done but not had much luck, so any guidance would be appreciated.
Comments
Comment #1
mikeryanYou need to use migrate_extras, which has a destination handler MigrateDestinationEntityAPI. If you use that for your destination (passing the entity type and bundle you're migrating into), then you can map fields from incoming nodes to the entity fields in the normal way.
Comment #2
marcus178 commentedOk thanks seem to have got it working using the following, not sure if my method is the best but it works. Sure there's probably a cleaner way of doing it.
Comment #3
mikeryanThat looks just right.