[TYPO3-mvc] Blog Example and Value Object question

Jochen Rau jochen.rau at typoplanet.de
Mon Dec 28 17:57:41 CET 2009


Hi.

schrieb Franz Koch:
>>> what if (to stay with the blog example) the blog posts shall be
>>> displayed by a certain tag?
>>
>> I would implement a method "findPostsByTag()" in the Blog. It's okay to
>> have find-methods inside a aggragate root domain objects as these act
>> like a repository for their contained objects. You can iterate over the
>> Posts and ask them "isTaggedWith()".
>
> Thanks for the info with findBy methods inside aggregate roots.
> Iterating over posts seems a bit odd (and slow) to me thinking of some
> more complex app then a blog, but I'll have a look.

Yoda said: "Work it make, then fast it make."

;-)

Jochen

-- 
Every nit picked is a bug fixed



More information about the TYPO3-project-typo3v4mvc mailing list