Skip to content
Snippets Groups Projects
Commit bae985a1 authored by Aaron Bauman's avatar Aaron Bauman Committed by Aaron Bauman
Browse files

Issue #3244516 by AaronBauman: Unknown column 'm.drupal_entity__target_id_int'...

Issue #3244516 by AaronBauman: Unknown column 'm.drupal_entity__target_id_int' with drush command salesforce_mapping:purge-drupal
parent d95ad24a
No related branches found
No related tags found
1 merge request!40Added check for null value.
...@@ -214,7 +214,7 @@ class SalesforceMappingCommands extends SalesforceMappingCommandsBase { ...@@ -214,7 +214,7 @@ class SalesforceMappingCommands extends SalesforceMappingCommandsBase {
$entity_type = $this->etm->getDefinition($et_id); $entity_type = $this->etm->getDefinition($et_id);
if ($entity_type) { if ($entity_type) {
$id_key = $entity_type->getKey('id'); $id_key = $entity_type->getKey('id');
$query->addJoin("LEFT", $entity_type->getBaseTable(), 'et', "et.$id_key = m.drupal_entity__target_id_int"); $query->addJoin("LEFT", $entity_type->getBaseTable(), 'et', "et.$id_key = m.drupal_entity__target_id");
$query->isNull("et.$id_key"); $query->isNull("et.$id_key");
} }
$mapped_obj_ids = $query->execute()->fetchCol(); $mapped_obj_ids = $query->execute()->fetchCol();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment