has()
has(string $relation, mixed $operator = '>=', int $count = 1, string $id = '*', string $joinType = '') : $this
根据关联条件查询当前模型
Parameters
| string |
$relation |
关联方法名
|
| mixed |
$operator |
比较操作符
|
| int |
$count |
个数
|
| string |
$id |
关联表的统计字段
|
| string |
$joinType |
JOIN类型
|
Returns
$this
—