External class (migration class) not found I have a module for my migration. My .info is:

name = "Migrate from MHT"
description = "Module to migrate my old site content to Drupal 7"
package = "ZbLabs"
core = 7.x

dependencies[] = migrate

#  include the files that contain your Migrate classes 
files[] = migrate_mht.migrate.inc
files[] = migrate_mht.module
files[] = migrate_mht_author.inc
files[] = migrate_mht_author_update.inc
files[] = migrate_mht_eventi.inc


In the migrate_mht_author_update.inc I have a class with this code: 

$this-&gt;map = new MigrateSQLMap($this-&gt;machineName,
  array(
    'id' =&gt; array(
      'type' =&gt; 'int',
      'not null' =&gt; TRUE,
      'description' =&gt; 'ID utente',
    )
  ),
  MhtAuthorDestination::getKeySchema()
);


The MhtAuthorDestination class is defined in "migrate_mht_author.inc" file.

class MhtAuthorDestinationMigration extends MigrateDestinationUser {

  public function __construct(array $arguments = array()) {
    dd("MhtAuthorDestinationFin __construct");
    dd($arguments);
    parent::__construct();  
  }
  [....]
}


Now when I exec "drush ms" I receive this error:

Error: Class 'MhtAuthorDestination' not found in /MY/PATH/sites/all/modules/zblabs/migrate_mht/migrate_mht_author_update.inc, line 38


In "migrate_mht.migrate.inc" file I have: 
function migrate_mht_migrate_api() {

 $api = array(
    'api' =&gt; 2,
    //'migrations' =&gt; array(
      //'MhtAuthorDestination' =&gt; array('class_name' =&gt; 'MhtAuthorDestination'),
    //),

  );

  return $api;
}


I have tried without comment (//) but the error remain.

Where is my error ?
The class name in your include file is MhtAuthorDestinationMigration, but you list its class name in hook_migrate_api as MhtAuthorDestination. Uncomment the line and try:

$api = array(
  'api' =&gt; 2,
  'migrations' =&gt; array(
    'MhtAuthorDestination' =&gt; array('class_name' =&gt; 'MhtAuthorDestinationMigration'),
  ),
);

return $api;