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)
但是,数据库仍然改变并插入一个新行。回滚方法不起作用。