|
@@ 1005-1010 (lines=6) @@
|
1002 |
|
? $assoc['joinTable']['joinColumns'] |
1003 |
|
: $assoc['joinTable']['inverseJoinColumns']; |
1004 |
|
|
1005 |
|
foreach ($relationColumns as $joinColumn) { |
1006 |
|
$quotedSourceColumn = $this->quoteStrategy->getJoinColumnName($joinColumn, $targetClass, $this->platform); |
1007 |
|
$quotedTargetColumn = $this->quoteStrategy->getReferencedJoinColumnName($joinColumn, $targetClass, $this->platform); |
1008 |
|
|
1009 |
|
$conditions[] = $sourceTableAlias . '.' . $quotedTargetColumn . ' = ' . $joinTableAlias . '.' . $quotedSourceColumn; |
1010 |
|
} |
1011 |
|
|
1012 |
|
$sql .= $joinTableName . ' ' . $joinTableAlias . ' ON ' . implode(' AND ', $conditions); |
1013 |
|
|
|
@@ 1022-1027 (lines=6) @@
|
1019 |
|
? $assoc['joinTable']['inverseJoinColumns'] |
1020 |
|
: $assoc['joinTable']['joinColumns']; |
1021 |
|
|
1022 |
|
foreach ($relationColumns as $joinColumn) { |
1023 |
|
$quotedSourceColumn = $this->quoteStrategy->getJoinColumnName($joinColumn, $targetClass, $this->platform); |
1024 |
|
$quotedTargetColumn = $this->quoteStrategy->getReferencedJoinColumnName($joinColumn, $targetClass, $this->platform); |
1025 |
|
|
1026 |
|
$conditions[] = $targetTableAlias . '.' . $quotedTargetColumn . ' = ' . $joinTableAlias . '.' . $quotedSourceColumn; |
1027 |
|
} |
1028 |
|
|
1029 |
|
// Apply remaining inheritance restrictions |
1030 |
|
$discrSql = $this->_generateDiscriminatorColumnConditionSQL([$joinedDqlAlias]); |