摘要: $transaction = Yii::$app->db->beginTransaction(); try{ //删除$model中的数据 $res = $model->deleteAll($cond); if(!$res) throw new \Exception('操作失败!'); //删除$m 阅读全文
posted @ 2017-05-25 16:54 pengcx 阅读(561) 评论(0) 推荐(0) 编辑