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