[TYPO3-mvc] Left join query

Nikolas Hagelstein lists at shr-now.de
Mon Jun 28 12:55:38 CEST 2010


Hi,

> My Tx_BwShop_Domain_Model_Keywords $keyword variable didn't have a javadoc
comment.
>I'm really happy! Thank you guys!!!! Now I get the all the products for a
specific keyword.

Add a custom findByKeywords method to your product repository. Looking like
this:

public function findByKeywords($keywords) {
	$query = $this->createQuery();
	return $query->matching($query->in('keywords.keyword', $keywords))
		->execute();
}

Take a look a the blog example. The postrepository shows how searches over
mm relations can be done (tags/post).

Cheers,
Nikolas




More information about the TYPO3-project-typo3v4mvc mailing list