We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ba0ea89 + e62571c commit 507c73cCopy full SHA for 507c73c
src/UnitOfWork.php
@@ -1557,18 +1557,15 @@ public function addToIdentityMap(object $entity): bool
1557
*/
1558
final public static function getIdHashByIdentifier(array $identifier): string
1559
{
1560
+ foreach ($identifier as $k => $value) {
1561
+ if ($value instanceof BackedEnum) {
1562
+ $identifier[$k] = $value->value;
1563
+ }
1564
1565
+
1566
return implode(
1567
' ',
- array_map(
- static function ($value) {
- if ($value instanceof BackedEnum) {
- return $value->value;
- }
-
1568
- return $value;
1569
- },
1570
- $identifier,
1571
- ),
+ $identifier,
1572
);
1573
}
1574
0 commit comments