1
0
mirror of synced 2025-01-31 04:21:44 +03:00

#1178 - correcting class from which the type of a column should be fetched (source class when relationToSourceKeyColumns is used)

This commit is contained in:
Marco Pivetta 2015-01-17 05:02:28 +01:00
parent 6e2179aa8e
commit 4eaa7ea821

View File

@ -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) {