[TYPO3-50-general] Last minute concept fix? Incosistent class naming for domain models ...

Sebastian KurfŸürst sebastian at typo3.org
Thu May 28 10:39:13 CEST 2009


Hey Robert,


> If you want them all in one namespace it would need to be like
> 
> \F3\Blog\Domain\BlogModel
> \F3\Blog\Domain\BlogRepository
> \F3\Blog\Domain\BlogValidator
> 
> but we shouldn't put a BlogValidator into a Model namespace - it's not
> the model, is it?
I would say that the Validator is part of the model because it makes 
sure certain invariants (assumptions about your model which have to be 
true always) are kept. So, these assumptions to me are closely coupled 
to the Model.

> Just for the sake of discussion: We could also group the models by 
> aggregates.
Hmm, do you think there's a one-to-one correspondence between Model and 
Service? Could it be that one Service handles many aggregates?

Do you have an example what a typical Domain\Service would do?

Anyway: AFAIK we do not force people to use Domain\Model, do we? And 
they could also use further subpackages if it makes sense to their domain.

Greets,
Sebastian


More information about the TYPO3-project-5_0-general mailing list