|
37 | 37 | * @method $this limit(mixed $offset, integer $length = null) static 查询LIMIT
|
38 | 38 | * @method $this order(mixed $field, string $order = null) static 查询ORDER
|
39 | 39 | * @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 设置查询缓存 |
41 | 41 | * @method mixed value(string $field, mixed $default = null) static 获取某个字段的值
|
42 | 42 | * @method array column(string $field, string $key = '') static 获取某个列的值
|
43 | 43 | * @method $this find(mixed $data = null) static 查询单个记录
|
44 | 44 | * @method $this findOrFail(mixed $data = null) 查询单个记录
|
45 | 45 | * @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 查询单个记录 不存在则抛出异常 |
48 | 48 | * @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 动态定义获取器 |
51 | 51 | * @method $this withJoin(string|array $with, string $joinType = '') static
|
52 | 52 | * @method $this withCount(string|array $relation, bool $subQuery = true) static 关联统计
|
53 | 53 | * @method $this withSum(string|array $relation, string $field, bool $subQuery = true) static 关联SUM统计
|
54 | 54 | * @method $this withMax(string|array $relation, string $field, bool $subQuery = true) static 关联MAX统计
|
55 | 55 | * @method $this withMin(string|array $relation, string $field, bool $subQuery = true) static 关联Min统计
|
56 | 56 | * @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 分页 |
58 | 58 | */
|
59 | 59 | abstract class Model implements \JsonSerializable, \ArrayAccess
|
60 | 60 | {
|
|
0 commit comments