Skip to content

Commit

Permalink
Merge pull request #222 from XueSiLf/2.x
Browse files Browse the repository at this point in the history
doc: update README.md
  • Loading branch information
kiss291323003 authored Jul 6, 2022
2 parents efed861 + b4739d7 commit 8c9b1b5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ composer require easyswoole/orm
## RFC
### 1、Model Invoke
```
Model:invoke()->where(col,val)->get()
Model:invoke(function(Model $m){
Model::invoke()->where(col,val)->get()
Model::invoke(function(Model $m){
$m->where(col,val)
})->get()
```

### 2、Model Where
```
$model = Model:create()
$model = Model::create()
//$op => = , > , < , != , in , between
$model->where(col1,val1,$op)->get()
Expand Down

0 comments on commit 8c9b1b5

Please sign in to comment.