Herzult/HerzultForumBundle — comment on commit 816823ddd317ba1884ce7bc02082ce99fe0dc8ba
File: Resources/views/Category/show.html.twig line 12
By RapotOR:

It occurs a second `findOneBySlug` call.

What do you think about having a twig helper to render the `HerzultForumBundle:Topic:list`?

Something like:

{{ topicList(category, ... ) }}

The twig helper service will have `herzult_forum.repository.topic` and template engine as parameters (in this case).

return $this->templateEngine->renderView('...', array(
'topics' => $this->topicRepository->findAllByCategory($category, true),
...
));