// +---------------------------------------------------------------------- namespace app\common\dao\store\parameter; use app\common\dao\BaseDao; use app\common\model\store\parameter\ParameterValue; class ParameterValueDao extends BaseDao { protected function getModel(): string { return ParameterValue::class; } public function clear($id,$field) { $this->getModel()::getDb()->where($field, $id)->delete(); } }