[TYPO3-mvc] Blog Example and Value Object question

Martin Kutschker masi-no at spam-typo3.org
Thu Dec 31 14:44:31 CET 2009


Franz Koch schrieb:
> 
>>> findByTag
>>> findAllByTag
>>> findByBlogAndTag
>>> findAllByBlogAndTag
>>
>> The *all* version are IMHO not really needed. A limit of 0 (or -1) can
>> be used to mean "all" (ie "no
>> limit"). Or is this another DDD-thingy? ;)
> 
> Although I'm no expert, I'd say so. Using a empty or negative limit
> would probably also do the trick and might not be wrong from a technical
> side, but is not that self explaining like the other methods. And AFAIK
> DDD is about to make stuff that easy to understand and work with that
> even customers understand what to do - right?

As long as I'm allowed to implement findAllByX($x) as findByX($x,-1) I don't mind.

Masi


More information about the TYPO3-project-typo3v4mvc mailing list