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.
1 parent 98f9de2 commit e62571cCopy full SHA for e62571c
src/UnitOfWork.php
@@ -1781,18 +1781,15 @@ public function addToIdentityMap($entity)
1781
*/
1782
final public static function getIdHashByIdentifier(array $identifier): string
1783
{
1784
+ foreach ($identifier as $k => $value) {
1785
+ if ($value instanceof BackedEnum) {
1786
+ $identifier[$k] = $value->value;
1787
+ }
1788
1789
+
1790
return implode(
1791
' ',
- array_map(
- static function ($value) {
- if ($value instanceof BackedEnum) {
- return $value->value;
- }
-
1792
- return $value;
1793
- },
1794
- $identifier
1795
- )
+ $identifier
1796
);
1797
}
1798
0 commit comments