[FLOW3-general] Question about DDD

Johannes Steu typo at motiv-sport.de
Sun Apr 8 13:35:36 CEST 2012


Hi Jochen,

thanks, that's exactly what i'm looking for!


Am 08.04.2012 um 13:26 schrieb Jochen Rau:

> Hi Johannes,
> 
> On Sun, Apr 08, 2012 at 12:10:57PM +0200, Johannes Steu wrote:
>> "If you want to display comments independently from their posts and blogs, you’d surely need a Comment Repository, too"
> 
> Not necessarily. You could also get all posts and iterate over them. But in most cases, having a dedicated repo is a performance gain.
> 
>> If i'd like to use a Comment Repository, will the model Comment still be inside the Aggregate?
> 
> Yes. You can nest aggregates. An aggregate like Comment can be inside another aggregate like post. Same Situation for Blog and Post
> 
> But if you have an aggregate Blog->Post->Comment, for example, a Post should only be accessed (referenced) through its Aggregate Root (the Blog).
> 
> Best
> Jochen
> _______________________________________________
> FLOW3-general mailing list
> FLOW3-general at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/flow3-general



More information about the FLOW3-general mailing list