[TYPO3-mvc] Blog Example and Value Object question

Jochen Rau jochen.rau at typoplanet.de
Wed Dec 30 15:36:24 CET 2009


Hi.

schrieb Franz Koch:
[...]
> So maybe a more generic method like "findAllByBlogAndMultipleProperties"
> might be the way to go, although writing tests for this might be a bit
> more difficult than for "simpler" methods.
>
> $postRepository->findAllByBlogAndMultipleProperties(
> $blog,
> array (
> 'author' => $author,
> 'tag' => $date,
> 'timerange' => array(
> 'min' => $dateMin,
> 'max' => $dateMax
> )
> ));
>
> What do you think? If you think this would be a good idea, we should
> think of a proper method name and provide a generic
> "findByMultipleProperties" in the abstractRepository of extbase as a)
> usefull addition and b) as a reference for other methods of this type.


What about findByCriteria(Tx_MyExtension_Domain_Model_Criteria 
$criteria) if that suits the Domain?

Regards
Jochen

-- 
Every nit picked is a bug fixed



More information about the TYPO3-project-typo3v4mvc mailing list