Code Duplication    Length = 7-7 lines in 2 locations

lib/Doctrine/ORM/Query/SqlWalker.php 2 locations

@@ 1919-1925 (lines=7) @@
1916
                $sqlParts[] = $sourceTableAlias . '.' . $targetColumn . ' = ' . $targetTableAlias . '.' . $sourceColumn;
1917
            }
1918
1919
            foreach ($this->quoteStrategy->getIdentifierColumnNames($targetClass, $this->platform) as $targetColumnName) {
1920
                if (isset($dqlParamKey)) {
1921
                    $this->parserResult->addParameterMapping($dqlParamKey, $this->sqlParamIndex++);
1922
                }
1923
1924
                $sqlParts[] = $targetTableAlias . '.'  . $targetColumnName . ' = ' . $entitySql;
1925
            }
1926
1927
            $sql .= implode(' AND ', $sqlParts);
1928
        } else { // many-to-many
@@ 1965-1971 (lines=7) @@
1962
                $sqlParts[] = $joinTableAlias . '.' . $joinColumn['name'] . ' = ' . $sourceTableAlias . '.' . $targetColumn;
1963
            }
1964
1965
            foreach ($this->quoteStrategy->getIdentifierColumnNames($targetClass, $this->platform) as $targetColumnName) {
1966
                if (isset($dqlParamKey)) {
1967
                    $this->parserResult->addParameterMapping($dqlParamKey, $this->sqlParamIndex++);
1968
                }
1969
1970
                $sqlParts[] = $targetTableAlias . '.' . $targetColumnName . ' IN (' . $entitySql . ')';
1971
            }
1972
1973
            $sql .= implode(' AND ', $sqlParts);
1974
        }