Пример #1
0
 /**
  * Creates a form to delete a Tags entity.
  *
  * @param Tags $tag The Tags entity
  *
  * @return \Symfony\Component\Form\Form The form
  */
 private function createDeleteForm(Tags $tag)
 {
     return $this->createFormBuilder()->setAction($this->generateUrl('tags_delete', array('id' => $tag->getId())))->setMethod('DELETE')->getForm();
 }
Пример #2
0
 /**
  * Add tags
  *
  * @param \AppBundle\Entity\Tags $tags
  * @return Transactions
  */
 public function addTag(\AppBundle\Entity\Tags $tags)
 {
     $tags->addTransaction($this);
     $this->tags[] = $tags;
     return $this;
 }