Commit dcad9433 authored by catch's avatar catch
Browse files

Issue #3208222 by jibran: Tables::addNextBaseTable() doesn't use square brackets syntax

parent a6ef32e6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
  }