[TYPO3-mvc] extbase: database query with mm relation

Franz Koch typo3.RemoveForMessage at elements-net.de
Mon Jan 18 14:17:12 CET 2010


Hi,

AFAIK the MM/Join methods are not yet implemented in the query layer.

> In my database table, i've a colmun named "categories". All categories
> to a post are counted there.

but the good news is, you don't need it in your case, as long as you 
define the $categories propery in your posts model and provider proper 
documented getters and setters. Extbase with then fill the categories 
automatically for you. And if you don't need to fetch the categories 
frequently in your posts, simply add a @lazy annotation to your property 
declaration and extbase will only fetch them for you on demand.

-- 
kind regards,
Franz Koch


More information about the TYPO3-project-typo3v4mvc mailing list