0
我創造了這樣一個交易:爾康交易無法正常工作正確
$this->db->begin();
$topic = new Topic();
$topic->assign($data);
$topic->save();
var_dump($this->db->isUnderTransaction()); // bool(true)
$this->db->rollback();
var_dump($this->db->isUnderTransaction()); // bool(false)
但是,數據庫仍然改變並插入一個新行。回滾方法不起作用。