Pagination při použití doctrine
Upozornění: Tohle vlákno je hodně staré a informace nemusí být platné pro současné Nette.

- Trxx
 - Člen | 4
 
Zdravím všechny,
prosím vás o radu – jak na webu zprovoznit pagination při použití doctrine, kdy entita genre má manytomany relationship s movies?
public function actionGenre($slug) {
  if(!$this->genre = $this->genreFacade->findBySlug($slug))
    $this->error("Genre not found");
}
public function renderGenre()
{
  $this->template->genre = $this->genre;
}
Takto se vytáhnou genre a potom vypíše v template:
{control videoList $genre->serials}
Děkuji.

- David Matějka
 - Moderator | 6445
 
Ahoj,
nevim, co ti presne nejde, ale problem bude minimalne s
{control videoList $genre->serials}
(skoro) nikdy neni dobry napad predavat data do komponenty az v sablone,
predavej je jiz v createComponentVideoList