Atom references are ignored when trying to migrate them. This is because MigrateAtomReferenceFieldHandler is registered with key 'field_handlers' (note the underline) instead of 'field handlers' in the migrate info.

See migrate.module (of latest module Migrate 7.x-2.5) line 284:

      $handler_key = 'field handlers';

The attached patch fixes that.

Comments

jox’s picture

Status: Active » Needs review
jcisio’s picture

Title: Migration: atom reference field handler not properly registered » Migration: atom reference field handler not registered if autoregistration is disabled
Status: Needs review » Fixed

It was a blind copy from Entity Reference module. Remove that line and we don't have any problem. As we subsclass MigrateFieldHandler, we don't need to declare the "field handlers" key. Migrate finds it automatically with reflection.

PS: but I add that line again so that we are future proof when Migrate has auto registration disabled by default.

Status: Fixed » Closed (fixed)

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