Event replay not working when the event path is changed #466
Unanswered
planetarquasar
asked this question in
Q&A
Replies: 1 comment
-
Event is still probably saved as |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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 returned
So after the change it somehow returning the
__PHP_Incomplete_Class
instead of the actually class, what I defined in the config.Beta Was this translation helpful? Give feedback.
All reactions