/**
  * Returns a list of articles by category
  * @param Category $category
  * @return Category array
  */
 public function getArticlesByCategoryAction(Category $category)
 {
     $articles = $category->getArticles();
     return $this->render('AppBundle:Category:category-article.html.twig', array('articles' => $articles, 'category' => $category));
 }
 /**
  * {@inheritDoc}
  */
 public function getArticles()
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'getArticles', array());
     return parent::getArticles();
 }