NotORM,在一个方法中执行两次相同得sql查询,sql查询条件叠加?

	public function test()
{
$model = $this->getORM();
$attr = [
'member_id' => $memberId,
'talker_id' => $talkerId
];
$talkId = $model->select('id')->where($attr)->fetchOne('id');
if (empty($talkId)) {
$attr = [
'member_id' => $talkerId,
'talker_id' => $memberId
];
$talkId = $model->select('id')->where($attr)->fetchOne('id');
return $talkId;
}
return $talkId;
}

1536594966(1).jpg

 
这条件累加查询了。
想问一下这是notORM独有得‘特性’还是bug?
 
已邀请:

要回复问题请先登录注册