Skip to content

Commit

Permalink
Fixed usage of join column type
Browse files Browse the repository at this point in the history
  • Loading branch information
webmozart authored and VincentLanglet committed Jan 25, 2022
1 parent 09cc956 commit 8ab389a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AuditReader.php
Original file line number Diff line number Diff line change
Expand Up @@ -890,7 +890,7 @@ private function createEntity($className, array $columnMap, array $data, $revisi
if (null !== $joinColumnValue) {
$targetField = $targetClass->fieldNames[$targetColumn];
$joinColumnType = Type::getType($targetClass->fieldMappings[$targetField]['type']);
$joinColumnValue = $type->convertToPHPValue($joinColumnValue, $this->platform);
$joinColumnValue = $joinColumnType->convertToPHPValue($joinColumnValue, $this->platform);
$associatedId[$targetField] = $joinColumnValue;
}
}
Expand Down

0 comments on commit 8ab389a

Please sign in to comment.