Q
Q
qRoC2015-10-28 23:56:18
Problem-Based Design
qRoC, 2015-10-28 23:56:18

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

1 answer(s)
D
ddd329, 2018-01-12
@ddd329

Yes, to create a factory.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question