You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
replaying events starting from given event number?
resetState is not called, so you can't truncate table. Also, you can't truncate table because you replaying not from start and some written data must stay in the tables
public function onCartInitialized(CartInitialized $event): void
{
(new Cart)->writeable()->create([
'uuid' => $event->cartUuid,
'status' => CartStatus::pending(),
'lock_status' => CartLockStatus::unlocked(),
'customer_id' => $event->customerId,
'created_at' => $event->date,
]);
}
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
How avoid getting an error
replaying events starting from given event number?
resetState
is not called, so you can't truncate table. Also, you can't truncate table because you replaying not from start and some written data must stay in the tablesBeta Was this translation helpful? Give feedback.
All reactions