public function cget($pagerParams, $extraParams = array())
 {
     if ($this->isDirector()) {
         $contratos = $this->contrato->cget(array());
         $extraParams['contrato'] = Utils\Collection::buildQuery($contratos);
     }
     return parent::cget($pagerParams, $extraParams);
 }
 public function cget($pagerParams, $extraParams = array())
 {
     if ($this->isDirector()) {
         $director = $this->getRelatedUser();
         $empresas = $this->getEm()->getRepository('SisesApplicationBundle:Empresa')->findBy(array('director' => $director));
         $extraParams['empresa'] = Utils\Collection::buildQuery($empresas);
     }
     return parent::cget($pagerParams, $extraParams);
 }