basemkhirat / elasticsearch

The missing elasticsearch ORM for Laravel, Lumen and Native php applications
MIT License
401 stars 130 forks source link

use strict comparison in where and whereNot method #116

Open isTianXin opened 4 years ago

isTianXin commented 4 years ago

When set where clause like $this->where('id', 0), it will generate wrong query because that in_array(0, $this->operators) and 0 == ">" is true.