Skip to content

Error serializing UuidV7 during event sourcing after upgrading to Ecotone v1.256 #484

@m2mtech

Description

@m2mtech

Ecotone version(s) affected: 1.256.0

Description
When upgrading from v1.255 to v1.256, commands containing a UuidV7 parameter cause an error during serialization in event sourcing:

Error: Typed static property Symfony\Component\Uid\UuidV7::\$seedParts must not be accessed before initialization

https://github.com/m2mtech/ecotoneUuidProblem/blob/ea98ecd5c106f85a1ad32077e3311aa0f49ecd96/error.log#L1

This happens during event sourcing when a change command contains the projected and modified entity.

How to reproduce

  1. Clone the test repository: ecotoneUuidProblem
  2. Run:
    docker compose run php83 composer update
    docker compose run php83 bin/phpunit

Context

  • PHP 8.3 (also tested with 8.4)
  • Symfony 6.4 (also tested with 7.3)
  • The issue was introduced with Ecotone v1.256
  • No issue on v1.255

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions