#1178 - minor code duplication removal
This commit is contained in:
parent
4eaa7ea821
commit
0743238b43
1 changed files with 1 additions and 1 deletions
|
@ -604,7 +604,7 @@ class ManyToManyPersister extends AbstractCollectionPersister
|
||||||
if (isset($mapping[$relationMode][$joinTableColumn])) {
|
if (isset($mapping[$relationMode][$joinTableColumn])) {
|
||||||
$whereClauses[] = 't.' . $joinTableColumn . ' = ?';
|
$whereClauses[] = 't.' . $joinTableColumn . ' = ?';
|
||||||
$column = $mapping[$relationMode][$joinTableColumn];
|
$column = $mapping[$relationMode][$joinTableColumn];
|
||||||
$params[] = $id[$targetEntity->getFieldForColumn($mapping[$relationMode][$joinTableColumn])];
|
$params[] = $id[$targetEntity->getFieldForColumn($column)];
|
||||||
$types[] = PersisterHelper::getTypeOfColumn($column, $targetEntity, $this->em);
|
$types[] = PersisterHelper::getTypeOfColumn($column, $targetEntity, $this->em);
|
||||||
} elseif ( ! $joinNeeded) {
|
} elseif ( ! $joinNeeded) {
|
||||||
$whereClauses[] = 't.' . $joinTableColumn . ' = ?';
|
$whereClauses[] = 't.' . $joinTableColumn . ' = ?';
|
||||||
|
|
Loading…
Add table
Reference in a new issue