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
{{ message }}
This repository has been archived by the owner on Sep 20, 2019. It is now read-only.
When you want to "start" a new aggregate root, you know need to generate a uuid, and "retrieve" an aggregate root with that uuid. In many cases, you know the aggregate root doesn't exist yet (e.g. when a user registers themself).
I propose an AggregateRoot::create() method which will generate a new uuid internally.
The text was updated successfully, but these errors were encountered:
In order to keep the package light, I've decided against adding this feature.
I'm thinking it's the responsibility of the user to generate the uuid to use. I can image that, for cases where you immediately want to return a result when creating a model, you want to have knowledge of the uuid used.
When you want to "start" a new aggregate root, you know need to generate a uuid, and "retrieve" an aggregate root with that uuid. In many cases, you know the aggregate root doesn't exist yet (e.g. when a user registers themself).
I propose an
AggregateRoot::create()
method which will generate a new uuid internally.The text was updated successfully, but these errors were encountered: