Loading core/lib/Drupal/Core/Entity/Query/Sql/Tables.php +1 −1 Original line number Diff line number Diff line Loading @@ -494,7 +494,7 @@ protected function getTableMapping($table, $entity_type_id) { * The alias of the next entity table joined in. */ protected function addNextBaseTable(EntityType $entity_type, $table, $sql_column, FieldStorageDefinitionInterface $field_storage) { $join_condition = '%alias.' . $entity_type->getKey('id') . " = $table.$sql_column"; $join_condition = '[%alias].[' . $entity_type->getKey('id') . "] = [$table].[$sql_column]"; return $this->sqlQuery->leftJoin($entity_type->getBaseTable(), NULL, $join_condition); } Loading Loading
core/lib/Drupal/Core/Entity/Query/Sql/Tables.php +1 −1 Original line number Diff line number Diff line Loading @@ -494,7 +494,7 @@ protected function getTableMapping($table, $entity_type_id) { * The alias of the next entity table joined in. */ protected function addNextBaseTable(EntityType $entity_type, $table, $sql_column, FieldStorageDefinitionInterface $field_storage) { $join_condition = '%alias.' . $entity_type->getKey('id') . " = $table.$sql_column"; $join_condition = '[%alias].[' . $entity_type->getKey('id') . "] = [$table].[$sql_column]"; return $this->sqlQuery->leftJoin($entity_type->getBaseTable(), NULL, $join_condition); } Loading