Aggregate Partials event listeners not working #385
Unanswered
guy-mulatu
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
Doing the below the listener doesn't seem to work on my partial, but it is working on the aggregate root, according to the docs and the books i was expecting it to work the other way around.
Partial
Root
So I have tried both the above separately, the type gets updated on my aggregate root, but the balance doesn't get updated on the aggregate partial, and when I check the Aggregate Partial indeed i can see that
protected function recordThat(ShouldBeStored $event): void { $this->aggregateRoot->recordThat($event); }
So i am a bit confused, should i used the listener from the root even for my partials?
Beta Was this translation helpful? Give feedback.
All reactions