|
@@ 1903-1907 (lines=5) @@
|
| 1900 |
|
$owningAssoc = $targetClass->associationMappings[$assoc['mappedBy']]; |
| 1901 |
|
$sqlParts = []; |
| 1902 |
|
|
| 1903 |
|
foreach ($owningAssoc['targetToSourceKeyColumns'] as $targetColumn => $sourceColumn) { |
| 1904 |
|
$targetColumn = $this->quoteStrategy->getColumnName($class->fieldNames[$targetColumn], $class, $this->platform); |
| 1905 |
|
|
| 1906 |
|
$sqlParts[] = $sourceTableAlias . '.' . $targetColumn . ' = ' . $targetTableAlias . '.' . $sourceColumn; |
| 1907 |
|
} |
| 1908 |
|
|
| 1909 |
|
foreach ($this->quoteStrategy->getIdentifierColumnNames($targetClass, $this->platform) as $targetColumnName) { |
| 1910 |
|
if (isset($dqlParamKey)) { |
|
@@ 1937-1941 (lines=5) @@
|
| 1934 |
|
$joinColumns = $assoc['isOwningSide'] ? $joinTable['inverseJoinColumns'] : $joinTable['joinColumns']; |
| 1935 |
|
$joinSqlParts = []; |
| 1936 |
|
|
| 1937 |
|
foreach ($joinColumns as $joinColumn) { |
| 1938 |
|
$targetColumn = $this->quoteStrategy->getColumnName($targetClass->fieldNames[$joinColumn['referencedColumnName']], $targetClass, $this->platform); |
| 1939 |
|
|
| 1940 |
|
$joinSqlParts[] = $joinTableAlias . '.' . $joinColumn['name'] . ' = ' . $targetTableAlias . '.' . $targetColumn; |
| 1941 |
|
} |
| 1942 |
|
|
| 1943 |
|
$sql .= implode(' AND ', $joinSqlParts); |
| 1944 |
|
$sql .= ' WHERE '; |
|
@@ 1949-1953 (lines=5) @@
|
| 1946 |
|
$joinColumns = $assoc['isOwningSide'] ? $joinTable['joinColumns'] : $joinTable['inverseJoinColumns']; |
| 1947 |
|
$sqlParts = []; |
| 1948 |
|
|
| 1949 |
|
foreach ($joinColumns as $joinColumn) { |
| 1950 |
|
$targetColumn = $this->quoteStrategy->getColumnName($class->fieldNames[$joinColumn['referencedColumnName']], $class, $this->platform); |
| 1951 |
|
|
| 1952 |
|
$sqlParts[] = $joinTableAlias . '.' . $joinColumn['name'] . ' = ' . $sourceTableAlias . '.' . $targetColumn; |
| 1953 |
|
} |
| 1954 |
|
|
| 1955 |
|
foreach ($this->quoteStrategy->getIdentifierColumnNames($targetClass, $this->platform) as $targetColumnName) { |
| 1956 |
|
if (isset($dqlParamKey)) { |