/**
  * 
  * @param Employee $object
  * @return string
  */
 public function transform($object)
 {
     if (null === $object) {
         return '';
     }
     return $object->getId();
 }
 /**
  *
  * @param type $employee
  * @return type
  */
 protected function getTeamsEmployees(Employee $employee, $team = 0)
 {
     $entityManager = $this->getDoctrine()->getManager();
     // if employee is not part of any team get his data only
     $teamsEmployees = $entityManager->getRepository('OpitOpitHrmUserBundle:Employee')->findTeamEmployees($employee->getId(), $team);
     return $teamsEmployees;
 }