+ framework model: add method to rollback database operations and return false.
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user