Answer the question
In order to leave comments, you need to log in
DDD - where to check fields for uniqueness?
Where to check entity fields for uniqueness? Create a factory? In the repository to build an object?
For example, the User entity, which should have a unique email field.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question