Open
Description
Oliver Drotbohm opened DATACMNS-1644 and commented
The support to publish domain events from aggregates leverages @AfterDomainEventPublication
to trigger event resets in the aggregate. Implementations usually wipe out a collection which assumes mutability of the aggregate.
We could change that by inspecting the return type of the method annotated and use the value returned if it is assignable to the aggregate type
No further details from DATACMNS-1644