The identity map causes errors if aggregate id is a numeric string.
Strings containing valid decimal integers, unless the number is preceded by a + sign, will be cast to the integer type. E.g. the key "8" will actually be stored under 8. On the other hand "08" will not be cast, as it isn't a valid decimal integer.
An explicit string type cast is needed here.
$domainEvent = $domainEvent->withAddedMetadata('aggregate_id', (string)$aggregateId);
@prolic The PR will be for version v6 and against this repository (v6 branch). We have to check if this can also happen with the new event store implemenation.
The identity map causes errors if aggregate id is a numeric string.
An explicit string type cast is needed here.
@prolic The PR will be for version
v6and against this repository (v6 branch). We have to check if this can also happen with the new event store implemenation.