[TYPO3-50-general] FLOW3 and DDD
Karsten Dambekalns
karsten at typo3.org
Fri Jan 16 18:33:05 CET 2009
Hi Nino.
On 16.01.2009 16:51 Uhr, Nino Martincevic wrote:
> One key concept seems missing here (at least to my attention):
> Aggregates
[...]
> Or are the examples, i.e. the blog example, build on the assumption that
> they are aggregate (roots)?
Yes, a Blog is considered to be an aggregate root in the example. Simply
put: if for object of type "Thing" a repository "ThingRepository"
exists, it's an aggregate.
Further support is missing right now, i.e. you will get in trouble with
inter-aggregate references when persisting. This is on my todo list.
> Another question is: there is only one repository for all objects,
> right? A kind of repository factory, I guess.
No. We have one "Content Repository" where all objects are persisted,
but you have one "DDD Repository" per type. Simply extend the
\F3\FLOW3\Persistence\Repository, see the Blog package.
Or did I get your question wrong?
Regards,
Karsten
More information about the TYPO3-project-5_0-general
mailing list