File tree 2 files changed +4
-14
lines changed
2 files changed +4
-14
lines changed Original file line number Diff line number Diff line change 8
8
class apiController extends Controller {
9
9
10
10
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 ());
21
12
22
- dd (Demo::find (1 ));
23
13
}
24
14
25
15
// ORM 查询类方法演示
@@ -166,7 +156,7 @@ public function transactionGet($id){
166
156
if ($ id ==1 ){
167
157
sleep (10 );
168
158
}
169
-
159
+
170
160
dump ($ database ->commit ());
171
161
dd (Demo::find (1 ));
172
162
}
Original file line number Diff line number Diff line change 1
1
# PHP QuickORM 框架开发文档
2
2
3
- 版本:20180828
3
+ 版本:20180905
4
4
5
5
## 简介
6
6
@@ -23,4 +23,4 @@ PHP QuickORM 框架([php-quickorm/framework](https://github.com/php-quickorm/f
23
23
如果您喜欢 PHP QuickORM 框架,请移步 Github 给我们一个 Star :)
24
24
25
25
---
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