#1178 - correcting class from which the type of a column should be fetched (source class when relationToSourceKeyColumns
is used)
This commit is contained in:
parent
6e2179aa8e
commit
4eaa7ea821
@ -678,7 +678,7 @@ class ManyToManyPersister extends AbstractCollectionPersister
|
||||
// relationToSourceKeyColumns
|
||||
$targetColumn = $mapping['relationToSourceKeyColumns'][$joinTableColumn];
|
||||
$params[] = $sourceId[$sourceClass->getFieldForColumn($targetColumn)];
|
||||
$types[] = PersisterHelper::getTypeOfColumn($targetColumn, $targetClass, $this->em);
|
||||
$types[] = PersisterHelper::getTypeOfColumn($targetColumn, $sourceClass, $this->em);
|
||||
}
|
||||
|
||||
if ($addFilters) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user