|
@@ 1921-1925 (lines=5) @@
|
| 1918 |
|
$owningAssoc = $targetClass->associationMappings[$assoc['mappedBy']]; |
| 1919 |
|
$sqlParts = []; |
| 1920 |
|
|
| 1921 |
|
foreach ($owningAssoc['targetToSourceKeyColumns'] as $targetColumn => $sourceColumn) { |
| 1922 |
|
$targetColumn = $this->quoteStrategy->getColumnName($class->fieldNames[$targetColumn], $class, $this->platform); |
| 1923 |
|
|
| 1924 |
|
$sqlParts[] = $sourceTableAlias . '.' . $targetColumn . ' = ' . $targetTableAlias . '.' . $sourceColumn; |
| 1925 |
|
} |
| 1926 |
|
|
| 1927 |
|
foreach ($this->quoteStrategy->getIdentifierColumnNames($targetClass, $this->platform) as $targetColumnName) { |
| 1928 |
|
if (isset($dqlParamKey)) { |
|
@@ 1955-1959 (lines=5) @@
|
| 1952 |
|
$joinColumns = $assoc['isOwningSide'] ? $joinTable['inverseJoinColumns'] : $joinTable['joinColumns']; |
| 1953 |
|
$joinSqlParts = []; |
| 1954 |
|
|
| 1955 |
|
foreach ($joinColumns as $joinColumn) { |
| 1956 |
|
$targetColumn = $this->quoteStrategy->getColumnName($targetClass->fieldNames[$joinColumn['referencedColumnName']], $targetClass, $this->platform); |
| 1957 |
|
|
| 1958 |
|
$joinSqlParts[] = $joinTableAlias . '.' . $joinColumn['name'] . ' = ' . $targetTableAlias . '.' . $targetColumn; |
| 1959 |
|
} |
| 1960 |
|
|
| 1961 |
|
$sql .= implode(' AND ', $joinSqlParts); |
| 1962 |
|
$sql .= ' WHERE '; |
|
@@ 1967-1971 (lines=5) @@
|
| 1964 |
|
$joinColumns = $assoc['isOwningSide'] ? $joinTable['joinColumns'] : $joinTable['inverseJoinColumns']; |
| 1965 |
|
$sqlParts = []; |
| 1966 |
|
|
| 1967 |
|
foreach ($joinColumns as $joinColumn) { |
| 1968 |
|
$targetColumn = $this->quoteStrategy->getColumnName($class->fieldNames[$joinColumn['referencedColumnName']], $class, $this->platform); |
| 1969 |
|
|
| 1970 |
|
$sqlParts[] = $joinTableAlias . '.' . $joinColumn['name'] . ' = ' . $sourceTableAlias . '.' . $targetColumn; |
| 1971 |
|
} |
| 1972 |
|
|
| 1973 |
|
foreach ($this->quoteStrategy->getIdentifierColumnNames($targetClass, $this->platform) as $targetColumnName) { |
| 1974 |
|
if (isset($dqlParamKey)) { |