Skip to content

Commit 1ce73c7

Browse files
chasonmaliu21st
authored andcommitted
修正 Model 类的分页方法注释
1 parent 3dfa86e commit 1ce73c7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

library/think/Model.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,24 +37,24 @@
3737
* @method $this limit(mixed $offset, integer $length = null) static 查询LIMIT
3838
* @method $this order(mixed $field, string $order = null) static 查询ORDER
3939
* @method $this orderRaw(string $field, array $bind = []) static 查询ORDER
40-
* @method $this cache(mixed $key = null , integer|\DateTime $expire = null, string $tag = null) static 设置查询缓存
40+
* @method $this cache(mixed $key = null, integer|\DateTime $expire = null, string $tag = null) static 设置查询缓存
4141
* @method mixed value(string $field, mixed $default = null) static 获取某个字段的值
4242
* @method array column(string $field, string $key = '') static 获取某个列的值
4343
* @method $this find(mixed $data = null) static 查询单个记录
4444
* @method $this findOrFail(mixed $data = null) 查询单个记录
4545
* @method Collection|$this[] select(mixed $data = null) static 查询多个记录
46-
* @method $this get(mixed $data = null,mixed $with = [],bool $cache = false, bool $failException = false) static 查询单个记录 支持关联预载入
47-
* @method $this getOrFail(mixed $data = null,mixed $with = [],bool $cache = false) static 查询单个记录 不存在则抛出异常
46+
* @method $this get(mixed $data = null, mixed $with = [], bool $cache = false, bool $failException = false) static 查询单个记录 支持关联预载入
47+
* @method $this getOrFail(mixed $data = null, mixed $with = [], bool $cache = false) static 查询单个记录 不存在则抛出异常
4848
* @method $this findOrEmpty(mixed $data = null) static 查询单个记录 不存在则返回空模型
49-
* @method Collection|$this[] all(mixed $data = null,mixed $with = [],bool $cache = false) static 查询多个记录 支持关联预载入
50-
* @method $this withAttr(array $name,\Closure $closure = null) static 动态定义获取器
49+
* @method Collection|$this[] all(mixed $data = null, mixed $with = [], bool $cache = false) static 查询多个记录 支持关联预载入
50+
* @method $this withAttr(array $name, \Closure $closure = null) static 动态定义获取器
5151
* @method $this withJoin(string|array $with, string $joinType = '') static
5252
* @method $this withCount(string|array $relation, bool $subQuery = true) static 关联统计
5353
* @method $this withSum(string|array $relation, string $field, bool $subQuery = true) static 关联SUM统计
5454
* @method $this withMax(string|array $relation, string $field, bool $subQuery = true) static 关联MAX统计
5555
* @method $this withMin(string|array $relation, string $field, bool $subQuery = true) static 关联Min统计
5656
* @method $this withAvg(string|array $relation, string $field, bool $subQuery = true) static 关联Avg统计
57-
* @method Paginator|$this paginate() static 分页
57+
* @method Paginator|$this paginate(int|array $listRows = null, int|bool $simple = false, array $config = []) static 分页
5858
*/
5959
abstract class Model implements \JsonSerializable, \ArrayAccess
6060
{

0 commit comments

Comments
 (0)