+ framework model: add method to rollback database operations and return false.

This commit is contained in:
liugang
2023-11-25 14:09:08 +08:00
parent ea78b0e164
commit c317dc98d7
+13
View File
@@ -111,6 +111,19 @@ class model extends baseModel
return true;
}
/**
* 回滚数据库操作。
* Rollback database operation.
*
* @access public
* @return false
*/
public function rollback(): bool
{
$this->dao->rollback();
return false;
}
/**
* Build menu of a module.
*