* Refactor actionModel::deleteByType.

This commit is contained in:
wangxuepeng
2023-10-09 05:45:45 +00:00
parent ddd65ab7fd
commit 51aceefb78
+4 -2
View File
@@ -1256,11 +1256,13 @@ class actionModel extends model
*
* @param string $objectType
* @access public
* @return void
* @return bool
*/
public function deleteByType(string $objectType)
public function deleteByType(string $objectType): bool
{
$this->dao->delete()->from(TABLE_ACTION)->where('objectType')->eq($objectType)->exec();
return !dao::isError();
}
/**