From b4739d7fc00cdf0d2935491c45cdc8f8f158b3de Mon Sep 17 00:00:00 2001 From: XueSi <1592328848@qq.com> Date: Tue, 5 Jul 2022 11:07:40 +0800 Subject: [PATCH] doc: update README.md --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 08492ea..410de5f 100644 --- a/README.md +++ b/README.md @@ -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()