DDD How to fetch a list of value objects
-
22-10-2019 - |
문제
I have a domain model
Customer
- Aggregate root - because an order can't exist without a customerOrder
- entityOrderStatus
- value object
In my form I need a list of all OrderStatuses
.
Should I fetch an empty customer entity(AR) from repository with an empty order entity which is containing a list of all OrderStatuses? This is awkward.
해결책
I asked same thing some time before. read this link.
제휴하지 않습니다 StackOverflow