Skip to content

Commit

Permalink
feat: findWhere 优化,对关联查询支持更友好
Browse files Browse the repository at this point in the history
  • Loading branch information
myloveGy committed Jun 15, 2019
1 parent 136189e commit 9ff3210
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion CHANGELOG.md
@@ -1,6 +1,19 @@
更新记录
=======

v1.0.10 2019-06-15
------------------

- refeactor: `repository``findWhere`优化,对关联数组查询支持

```php
$this->userRepository->findWhere([
'and',
['username' => 1, 'age' => 2],
['or', ['name' => '1', 'name' => 2]]
])->get();
```

v1.0.9 2019-06-15
-----------------

Expand Down Expand Up @@ -63,4 +76,4 @@ v1.0.4 2019-06-02
v1.0.3 2019-06-02
-----------------

- change: model 没有通过字段 columns 定义表的字段,那么通过数据库查询获取表的字段信息
- change: model 没有通过字段 columns 定义表的字段,那么通过数据库查询获取表的字段信息

0 comments on commit 9ff3210

Please sign in to comment.