[TYPO3-core] Domain model "page"

Steffen Müller typo3 at t3node.com
Thu Feb 19 21:21:01 CET 2015


Am 19.02.2015 um 17:37 schrieb Philipp Gampe:
> I agree that the core should ship domain models and repositories for all 
> frequently used tables.

I disagree. Extbase already ships pointless domain models for a
fictional CMS domain, e.g. FrontendUser. IMHO these models violate the
domain driven design principle: I have never seen a domain which uses
all properties of FrontendUser and therefore these properties should not
be exposed. The same would go for pages.
One could argue with convenience to create domain models facets based on
the core models, but it gets rather pointless when you want your domain
model classes to also serve as a documentation of your domain. You would
have to add all properties + getter/setters to the facet anyway.


Active Contributor TYPO3 CMS

Personal Blog: https://stmllr.net/
Twitter: @stmllr - https://twitter.com/stmllr
GitHub: https://github.com/stmllr

More information about the TYPO3-team-core mailing list