|
@@ 998-1003 (lines=6) @@
|
995 |
|
? $assoc['joinTable']['joinColumns'] |
996 |
|
: $assoc['joinTable']['inverseJoinColumns']; |
997 |
|
|
998 |
|
foreach ($relationColumns as $joinColumn) { |
999 |
|
$quotedSourceColumn = $this->quoteStrategy->getJoinColumnName($joinColumn, $targetClass, $this->platform); |
1000 |
|
$quotedTargetColumn = $this->quoteStrategy->getReferencedJoinColumnName($joinColumn, $targetClass, $this->platform); |
1001 |
|
|
1002 |
|
$conditions[] = $sourceTableAlias . '.' . $quotedTargetColumn . ' = ' . $joinTableAlias . '.' . $quotedSourceColumn; |
1003 |
|
} |
1004 |
|
|
1005 |
|
$sql .= $joinTableName . ' ' . $joinTableAlias . ' ON ' . implode(' AND ', $conditions); |
1006 |
|
|
|
@@ 1015-1020 (lines=6) @@
|
1012 |
|
? $assoc['joinTable']['inverseJoinColumns'] |
1013 |
|
: $assoc['joinTable']['joinColumns']; |
1014 |
|
|
1015 |
|
foreach ($relationColumns as $joinColumn) { |
1016 |
|
$quotedSourceColumn = $this->quoteStrategy->getJoinColumnName($joinColumn, $targetClass, $this->platform); |
1017 |
|
$quotedTargetColumn = $this->quoteStrategy->getReferencedJoinColumnName($joinColumn, $targetClass, $this->platform); |
1018 |
|
|
1019 |
|
$conditions[] = $targetTableAlias . '.' . $quotedTargetColumn . ' = ' . $joinTableAlias . '.' . $quotedSourceColumn; |
1020 |
|
} |
1021 |
|
|
1022 |
|
// Apply remaining inheritance restrictions |
1023 |
|
$discrSql = $this->_generateDiscriminatorColumnConditionSQL([$joinedDqlAlias]); |