I am execute flowing query .
$query = $busdetails
->find('list',['keyField' => 'id','valueField' => 'bus_name'])
->where(['status'=>1,'is_approved'=>1]);
pr($query->toArray());
It works fine if some results found but if no results found then it shows an error Cannot convert value to bool issue. Thanks