protected function buildResult($val)
 {
     $result = new AdminSearchResult();
     $result->setId($val->getId());
     $result->setFirstName($val->getFirstName());
     $result->setLastName($val->getLastName());
     $result->setMiddleName($val->getMiddleName());
     $route = $this->router->generate("admin_doctor_edit", array('idId' => $val->getId()));
     $result->setUrl($route);
     $result->setName(DoctorService::getFullName($val));
     return $result;
 }
 public function doctorSpecializationsToString($doctor)
 {
     return DoctorService::doctorSpecialitiesToString($doctor);
 }