public function add() { $setor = new Setor(); $setor->setData($this->data); $setor->save(); $this->grid(); }