You are here

protected function ImageAttachImageNodeDrupalMigration::query in Image 7

Query for the image data.

Return value

QueryConditionInterface

Overrides DrupalMigration::query

1 call to ImageAttachImageNodeDrupalMigration::query()
ImageAttachImageNodeDrupalMigration::__construct in image_migrate/image_migrate.image_attach.inc

File

image_migrate/image_migrate.image_attach.inc, line 97
Class for migrating Image attach into Drupal 7.

Class

ImageAttachImageNodeDrupalMigration
Migration for image attach data into entityreference fields.

Code

protected function query() {
  $query = Database::getConnection('default', $this->sourceConnection)
    ->select('image_attach', 'ia')
    ->fields('ia')
    ->groupBy('ia.nid');
  return $query;
}