Skip to content

Commit

Permalink
fix doctrine now supports backed enums by default
Browse files Browse the repository at this point in the history
  • Loading branch information
kaleta committed Feb 3, 2023
1 parent 3cc01dd commit bbcca03
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions Hydrator/SimpleObjectHydrator.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,6 @@ protected function doHydrateRowData(string $className, array $data): object
continue;
}

$enumValue = $this->getEnumForValue($classMetaData, $property, $value);
if($enumValue !== null) {
$value = $enumValue;
}

//$property->setAccessible(true);
$property->setValue($entity, $value);
//$property->setAccessible(false);
Expand Down

0 comments on commit bbcca03

Please sign in to comment.