public function assignProjectAction(Request $request)
 {
     $project_id = $request->request->get('project_id');
     $developer_id = $request->request->get('developer_id');
     $em = $this->getDoctrine()->getEntityManager();
     $project = $em->getRepository("MISAMprojectBundle:Project")->find($project_id);
     $developer = $em->getRepository("MISAMprojectBundle:Developer")->find($developer_id);
     $assignation = new Assignation();
     $assignation->setProject($project);
     $assignation->setDeveloper($developer);
     $em->persist($assignation);
     $developer->addAssignation($assignation);
     $project->setAssignation($assignation);
     $em->persist($developer);
     $em->persist($project);
     $em->flush();
     return $this->render('MISAMprojectBundle:Ajax:assignation.html.twig', array('developer' => $developer));
 }
 /**
  * {@inheritDoc}
  */
 public function getProject()
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'getProject', array());
     return parent::getProject();
 }