Event replay not working when the event path is changed #466
Unanswered
planetarquasar
asked this question in
Q&A
Replies: 1 comment 1 reply
|
Event is still probably saved as |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hello, can anyone help me, why the event replay failed if I change the event path? So recently the business logic demanded to remove one event, but instead of delete the event i want to mark as obsolate, so in the events folder i mad a new folder called deprecated and i moved in the event, i changed the namespace and updated the event_class_map in the config/event-sourcing
from:
to:
After the change i wanted to run the event replay and it returned this error:
App\Support\JsonSerializer::deserialize(): Return value must be of type Spatie\EventSourcing\StoredEvents\ShouldBeStored, __PHP_Incomplete_Class returnedSo after the change it somehow returning the
__PHP_Incomplete_Classinstead of the actually class, what I defined in the config.All reactions