Tencent / Tencent/Biny

开启事务的问题

Open
#111 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
PHP
Stars
1.7k
Forks
253
PR merge metrics
No merged PRs in 30d

Description

开启事务后,好像引用不了。使用需要注意什么事项?
Fatal error: Uncaught Error: Class 'Database' not found in /www/wwwroot/www.domain.cn/app/controller/admin/adminAction.php:620 Stack trace: #0 [internal function]: app\controller\adminAction->action_admin_user_update() #1 /www/wwwroot/www.domain.cn/lib/business/Controller.php(69): call_user_func_array() #2

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the transaction-related request and inspect app/controller/admin/adminAction.php at line 620, then trace the call through lib/business/Controller.php at line 69. Determine why the Database class is unavailable after starting a transaction; done means the request no longer raises the reported fatal error and the required usage precautions are clear.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
backend, database
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.