hi there,
im currently in the process of migrating a custom legacy cms database to a new drupa project. its going pretty well, except the point where i have to integrate with relation module:
-i have multiple (~10) many-to-many relationship tables in the old database model
the new drupal site uses relation module to connect entities to each other. i found relation_migrate submodule, and got it to work. however, only by doing a MigrateDestinationTable first, with 2 fields mapped with their according sourcemigration (always node<>node), and then using the resulting custom relation table (holding the new drupal entity IDs) to add relationships with MigrateDestinationRelation.
since that approach consumes a lot of time (always create the translated migration tables with the new entity IDs first, for each CT to CT relationship, then doing the actual implementation of relation entities), I wonder if there is a better (most importantly shorter) way to deal with this.
this is a snippet from my RelationMigration class:
public function prepare($relation, stdClass $source_row) {
$relation->endpoints[LANGUAGE_NONE] = array(
array('entity_type' => 'node', 'entity_id' => $source_row->eid),
array('entity_type' => 'node', 'entity_id' => $source_row->bid),
);
}