public function constructData() { $this->datos = $this->getRepo("MySecurityBundle:Usuario")->getInstances(UtilRepository2::getParameter('idUser'), $this->getTableFiltersByRquest()); $result = array(); foreach ($this->datos as $row) { $tmpArray = array(); $tmpArray[] = $row['tipoInstancia']; $tmpArray[] = $row['instancia']; $result[] = $tmpArray; } return $result; }