示例#1
0
 public function deleteAcesso($delete)
 {
     try {
         $transaction = $this->beginTransaction();
         if (is_array($delete)) {
             foreach ($delete as $id) {
                 Acesso::create($id)->delete();
             }
         } else {
             Acesso::create($delete)->delete();
         }
         $transaction->commit();
     } catch (Exception $e) {
         $transaction->rollback();
         throw new EModelException('Erro ao exlcuir Grupo da Transacao');
     }
 }
 public function add()
 {
     Acesso::create($this->data)->save();
     $this->grid();
 }