File tree Expand file tree Collapse file tree 2 files changed +4
-14
lines changed Expand file tree Collapse file tree 2 files changed +4
-14
lines changed Original file line number Diff line number Diff line change 88class apiController extends Controller {
99
1010 public function testGet ($ id ){
11- $ table = "demo " ;
12- $ database = new Database ($ table );
13-
14- $ database ->beginTransaction ();
15- $ database ->where ([ "id " => 1 ])->update ([ "author " => $ id ]);
16- if ($ id ==1 ){
17- sleep (10 );
18- }
19-
20- dump ($ database ->commit ());
11+ dump ($ this ->request ->getMethod ());
2112
22- dd (Demo::find (1 ));
2313 }
2414
2515 // ORM 查询类方法演示
@@ -166,7 +156,7 @@ public function transactionGet($id){
166156 if ($ id ==1 ){
167157 sleep (10 );
168158 }
169-
159+
170160 dump ($ database ->commit ());
171161 dd (Demo::find (1 ));
172162 }
Original file line number Diff line number Diff line change 11# PHP QuickORM 框架开发文档
22
3- 版本:20180828
3+ 版本:20180905
44
55## 简介
66
@@ -23,4 +23,4 @@ PHP QuickORM 框架([php-quickorm/framework](https://github.com/php-quickorm/f
2323如果您喜欢 PHP QuickORM 框架,请移步 Github 给我们一个 Star :)
2424
2525---
26- 具体的安装事项与开发文档,请移步 [ php-quickorm/framework ] ( https://github.com/php-quickorm/documents )
26+ 具体的安装事项与开发文档,请移步 [ php-quickorm/documents ] ( https://github.com/php-quickorm/documents )
You can’t perform that action at this time.
0 commit comments