//$where
array(1) {
[0]=>
array(3) {
[0]=>
string(11) "goodsStatus"
[1]=>
string(1) "="
[2]=>
int(1)
}
}
$this->model->table('mongodbGoods')->where($where)->select();
//报错查询表达式错误:goodsstatus
//mongodb中的goodsstatus是int型 我查询也转换成int型了
链式操作where()不能传数组吗?
$this->model->table('mongodbGoods')->where('goodsstatus','=',1)->select();
//这样就不报错 最佳答案