Skip to content

Commit

Permalink
doc: update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
XueSiLf committed Jul 5, 2022
1 parent efed861 commit b4739d7
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 b4739d7

Please sign in to comment.