/** 
  * Clone jobDescription
  * Clones a JobDescription line 
  * @param \ExclusiveBooks\DemoAppBundle\Entity\JobDescription $entity2
  * @return JobDescription
  */
 public function clonefromJob(\ExclusiveBooks\DemoAppBundle\Entity\JobDescription $entity2)
 {
     $this->setjobIdentifier($entity2->getjobIdentifier() . "a");
     $this->setjobName($entity2->getjobName() . " (cloned)");
     $this->setjobComment($entity2->getjobComment());
     $this->setscriptLocation($entity2->getscriptLocation());
     $this->setscriptIdentifier($entity2->getscriptIdentifier());
     $this->setcontrolTable($entity2->getcontrolTable());
     $this->setJobArguments($entity2->getJobArguments());
     $this->setescalationChain($entity2->getescalationChain());
     $this->setcronSchedule($entity2->getcronSchedule());
     $this->setServer($entity2->getServer());
     $this->setrunType($entity2->getrunType());
     return $this;
 }
 /**
  * Deletes a JobDescription entity.
  *
  */
 public function deleteAction(Request $request, JobDescription $entity, $id)
 {
     $form = $this->createDeleteForm($id);
     $form->handleRequest($request);
     if ($form->isValid()) {
         $em = $this->getDoctrine()->getManager();
         $entity->setjobStatus("D");
         $this->addFlash('notice', 'The job was sucessfully de-activated!');
         $em->flush();
     }
     return $this->redirect($this->generateUrl('admin_jobs'));
 }