Exemplo n.º 1
0
 /**
  * Creates a form to delete a Issue entity.
  *
  * @param Issue $issue The Issue entity
  *
  * @return \Symfony\Component\Form\Form The form
  */
 private function createDeleteForm(Issue $issue)
 {
     return $this->createFormBuilder()->setAction($this->generateUrl('issue_delete', array('id' => $issue->getId())))->setMethod('DELETE')->getForm();
 }
 public function findByIssue(Issue $issue)
 {
     $query = $this->createQueryBuilder('activity');
     $query->leftJoin('activity.project', 'p')->leftJoin('activity.issue', 'i')->leftJoin('activity.user', 'u')->where('i.id = :issue_id')->setParameter('issue_id', $issue->getId())->orderBy('activity.created', 'DESC')->setMaxResults(16);
     return $query->getQuery()->getResult();
 }