[TYPO3-mvc] FYI: Implemented another handy query feature
Franz Koch
typo3.RemoveForMessage at elements-net.de
Wed Mar 10 16:40:09 CET 2010
Hi Jochen,
...
> public function findTaggedWith($name) {
> $query = $this->createQuery();
> $query->matching($query->equals('tags.name', $name));
> return $query->execute();
> }
>
> This will return all Posts that are tagged with the given name. Extbase
> expands this to a INNER JOIN with the Tag table.
>
> This works for 1:1, 1:n, and m:n relations. And even for comma separated
> values. And it works for all comparisons (equals, in, contains, like ...).
Thats great!!! Thanks for this - it really eases up working with extbase
in more complex environments. I'll test it in the next days.
--
kind regards,
Franz Koch
More information about the TYPO3-project-typo3v4mvc
mailing list