Skip to content

InvalidStoredEvent When Retrieving Aggregate if Model Deleted... #311

Answered by etahamer
garethdaine asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @garethdaine,

So your event constructor looks something similar?

If yes, then I suggest not storing model as a constructor argument and rather store user_uuid property instead. This way you could always retrieve aggregate and also replay events without depending on database.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@brendt
Comment options

@garethdaine
Comment options

@brendt
Comment options

Answer selected by brendt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants