发现tp6使用join()+find()的查询结果为null,查看find源码,好像必须需要where,tp3是不需要where就可以用find的,
而且不是说join配上where会影响查询性能吗?为啥tp6要做这样的修改呢
find源码内容如下:
if (empty($this->options['where']) && empty($this->options['order'])) {
$result = [];
} else {
$result = $this->connection->find($this);
}