[TYPO3-mvc] createQuery: findByCategory

Julian Kleinhans typo3 at kj187.de
Thu Jul 30 22:35:52 CEST 2009


Hi folks,

i have three tables

- tx_tutorials_domain_model_category
- tx_tutorials_domain_model_category_mm
- tx_tutorials_domain_model_tutorial

One tutorial can have * categories and one categorie can have * 
tutorials, thus its an m:n relationship

I have a tutorial model, a category model and a tutorial repository

In my tutorial repository i have the following method

...
public function findByCategory(Tx_Tutorials_Domain_Model_Category 
$category) {		
	$query = $this->createQuery();
	return $query->matching($query->equals('category', $category))
	->execute();	
}


In my tutorial controller i call the repository via

$this->tutorialRepository->findByCategory($category);

with the promis that the result includes all tutorials with that category...

But the result is a Fatal error

> Fatal error: Uncaught exception 'Tx_Extbase_Persistence_Exception' with message 'Method not yet implemented, sorry!'

What do i wrong?

cheers
julian kleinhans


More information about the TYPO3-project-typo3v4mvc mailing list