Esempio n. 1
0
 /**
  * Add categoryArticles
  *
  * @param \Koopa\AppBundle\Entity\CategoryArticle $categoryArticles
  * @return Article
  */
 public function addCategoryArticle(\Koopa\AppBundle\Entity\CategoryArticle $categoryArticle)
 {
     $this->categoryArticles[] = $categoryArticle;
     $categoryArticle->addArticle($this);
     return $this;
 }
 /**
  * @param CategoryArticle $category
  * @return \Symfony\Component\Form\Form
  */
 protected function createDeleteForm(CategoryArticle $category)
 {
     $form = $this->createFormBuilder();
     $form->setAction($this->generateUrl('category_article_delete', ['id' => $category->getId()]))->setMethod('DELETE');
     return $form->getForm();
 }