Example #1
0
 function __destruct()
 {
     if (!$this->committed) {
         DB::rollback();
     }
 }